Hi there people of the forum,
I need a pointer as I cannot resolve this for some reason:-
foreach($_POST as $key){
//iterate through each post key
}
foreach($_POST as $key=>value){
//iterate through each post key& value
}
I am sure as this is valid syntax, but I get the error "T_PAAMAYIM_NEKUDOTAYIM" which according to the php.net manual means double colon (I think) In Hebrew, my issue is, I want to iterate through a $_POST array in a foreach keeping the keys & values in tact. I hope this makes sense.
The reason for this is I am attempting something in a class for the first time, and I cannot think of another way to approach this.
If anyone has a better approach to this, feel free to tell me :)
Cheers,
MRb