Open In App

PHP | ArrayIterator seek() Function

Last Updated : 21 Nov, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
The ArrayIterator::seek() function is an inbuilt function in PHP which is used to seek the position of an array iterator. Syntax:
void ArrayIterator::seek( int $position )
Parameters: This function accepts single parameter $position which holds the position to seek. Return Value: This function does not return any value. Below programs illustrate the ArrayIterator::seek() function in PHP: Program 1:
Output:
9
Program 2:
Output:
Geeks
Reference: https://www.php.net/manual/en/arrayiterator.seek.php

Next Article

Similar Reads