The CachingIterator::current() function is an inbuilt function in PHP which is used to return the current element.
mixed CachingIterator::current( void )
Parameters: This function does not accept any parameters.
Return Value: This function returns the current value of CachingIterator.
Below programs illustrate the CachingIterator::current() function in PHP:
G e e k s
Geeks for Geeks Computer Science Portal
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.