PHP Array next() Function
What is next() Function?
The "next()" function advances the internal array pointer of an array.
In the above syntax "array" is the array in which the internal pointer is to be advanced.
In the above example from the array "$b" current element is displayed, then the pointer is moved using the next() to display "Apple".