PHP Array each() Function
What is each() Function?
The "each()" function returns the current key and value pair from an array and advance the array cursor.
In the above syntax "array" is the array from which the current key, value pair is returned and the cursor moves to the next element.
Array (  => Grapes [value] =>Grapes  => 0 [key] => 0 )
In the above example the current element key and value from the array "$b" is displayed and the cursor moves to the next element.