current in PHP

Syntax of current in PHP

mixed current(array array)

Returns the value of the element to which the internal pointer is set. The first time that current() is called, or when current() is called after reset, the pointer is set to the first element in the array

Leave a Comment