PHP Array end() Function
What is end() Function?
The "end()" function sets the internal pointer of an array to its last element.
In the above syntax "array" is the array in which the internal pointer is set to the last element, and displays it.
In the above example the last element of the array "$b" is displayed, as the function moves the internal pointer to the last element.