Program to access first and last item in array:
First element is 3 Last element is 5
First element is Geeks Last element is science
- How to insert an item at the beginning of an array in PHP ?
- Program to Insert new item in array on any position in PHP
- PHP program to add item at the beginning of associative array