sorry thats outa my league, ill try to understand what went on there by asking a few questions so i can code it my own way (so i learn cause thats what the name of my game is)
1) what does the .= thing do? whats up with that?
2) when can you use the actual question mark like it seams you did here
Code: Select all
$output .= $k . ' was ' . ($k == $_POSTї'option'] ? '' : 'not ') . 'selected<br />';
can u comment almost every word of that? i dont quite understand.
3) also isnt just the 1st part of this enough? whats with the second part
Code: Select all
if(isset($_POSTї'option']) && isset($optionsї$_POSTї'option']]))
4) and what about file_get_contents? whats the diffrence between that and like fopen, and fgets, and fgetss and such.
5) also if you could explain to me the foreach loop i would be most appreciative, i understand the use of the while loop and the for loop but the foreach loop dosnt make any sence to me. please explain
sorry if im a bother but im just trying to learn. also if there is anything else important there then if u would comment on it. im kinda a newbie but i promise im not just copying and pasting, im really really trying hard to learn. thanks