InterviewSolution
Saved Bookmarks
| 1. |
How to get first element of array in php? |
|
Answer» There are various methods in PHP to get the first ELEMENT of an array. Some of the techniques are the use of reset function, array_slice function, array_reverse, array_values, foreach loop, etc. ExampleSUPPOSE we have an array like |
|