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
- 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?
- How to make the cursor to hand when a user hovers over a 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.