Looping through all of the elements of PHP array using foreach loop
It is possible to loop through all of the elements of a PHP array using foreach method.
If a loop is done using foreach method, then it is possible to modify elements of an array using & (ampersand) sign in-front of the array variable.
Example of this is: foreach ($array as $key => &$value)
Comments
Post a Comment