There are many built-in functions in PHP for iterating arrays.
Some of them are:
Returns an array which elements are modified in the function.
The modification is specified in the returned value of the function.
The iterated element is accessed as the argument of the function.