PHP current() FunctionLast Updated : 17 Mar 2025 The current( ) function is an inbuilt function of PHP, and it is used to return the value of the current element in an array. This function was introduced in PHP 4.0. SyntaxParameters
Return ValuesThe current( ) function returns the value of the current element in an array or false on empty elements. Example 1Output: javatpoint Example 2Output: udemy Example 3Output: udacity Example 4Output: edureka Next TopicPhp-array-diff-assoc-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India