foreach « Statement « PHP






1.Foreach Demo
2.Looping through an Enumerated Array
3.Array element order and foreach()
4.Iterating through a multidimensional array with foreach()
5.Modifying an array with foreach()
6.Using foreach() to Iterate Through an Array
7.Using foreach() with numeric arrays
8.Displaying the contents of an array using a loop
9.Iterating Through Object Properties








10.Implementing the traversable Iterator