How to Get the First Element of an Array in PHP?

Posted by Prem Tiwari | Updated on

In this example you will learn, how to Get the First Element of an Array in PHP. If you know the exact index or key of an array you can easily get the first element, like this:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers