Interates through the list and places each value into the variable whose name is designated by the item parameter value. The following statements are executed before [[END_FOR_EACH_AS]] for each item in the list. A list is equivalent to a single dimension indexed array in PHP.



Outputs the student list one name per line.


Same as FOR_EACH_AS but used to directly modify array elements within the loop assigning the values by reference.

Leave a Reply