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

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator