Foreach in PHP
The foreach statement is used to loop through arrays.
For each pass the value of the current array element is assigned to $age and the array pointer is moved by one and in the next pass next element will be processed.
For each pass the value of the current array element is assigned to $age and the array pointer is moved by one and in the next pass next element will be processed.
June 13, 2021
phpforeach