PHP current() functionThe 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 Functions
|