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
- HTML | DOM item() Method
- How to remove indentation from an unordered list item using CSS?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.