public function seek($intPosition)
    {
        if (is_numeric($intPosition) && $intPosition < count($this->collection)) {
            reset($this->collection);
            while ($intPosition < key($this->collection)) {
                next($this->collection);
            }
        }

        $this->isSeek = true;
    }
public function seek($intPosition)
    {
        if (is_numeric($intPosition) && $intPosition < count($this->collection)) {
            reset($this->collection);
            while ($intPosition < key($this->collection)) {
                next($this->collection);
            }
        }

        $this->isSeek = true;
    }
public function seek ( $ intPosition ) { if ( is_numeric ( $ intPosition ) && $ intPosition < count ( $ this -> collection ) ) { reset ( $ this -> collection ) ; while ( $ intPosition < key ( $ this -> collection ) ) { next ( $ this -> collection ) ; } } $ this -> isSeek = true ; }
Advance internal pointer to a specific index

@param integer $intPosition The index to advance to
Advance internal pointer to a specific index