public function seek($position) {
		$index       = $this->getIndexData();
		$maxPosition = count($index) - 1;
		
		if ($position > $maxPosition) {
			$position = $maxPosition;
		}
		
		fseek($this->file, $index[$position]);
		$this->pointer = $position;
	}
public function seek($position) {
		$index       = $this->getIndexData();
		$maxPosition = count($index) - 1;
		
		if ($position > $maxPosition) {
			$position = $maxPosition;
		}
		
		fseek($this->file, $index[$position]);
		$this->pointer = $position;
	}
public function seek ( $ position ) { $ index = $ this -> getIndexData ( ) ; $ maxPosition = count ( $ index ) - 1 ; if ( $ position > $ maxPosition ) { $ position = $ maxPosition ; } fseek ( $ this -> file , $ index [ $ position ] ) ; $ this -> pointer = $ position ; }
Seek a position of an item

@param int $position
Seek a position of an item