Posts Tagged ‘foreach loop’
 
 
 
 
Development
 
ForEach($array as $array){ echo $array;}
ForEach($array as $array){ echo $array;}
ForEach($array as $array){ echo $array;}

foreach construct in PHP 4, PHP 5

The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variab...