The ArrayIterator::current() function is an inbuilt function in PHP which is used to return the current element of array iterator.
mixed ArrayIterator::current( void )
Parameters: This function does not accept any parameters.
Return Value: This function returns the current element of array.
Below programs illustrate the ArrayIterator::current() function in PHP:
Geeks for Geeks
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.