src/Iterator/ArrayAccessIterator.php
public function getKey( $cursor )
	{
		$this->calculateKeyMap();
		if( !array_key_exists( $cursor, $this->keyMap ) ) {
			return null;
		}

		return $this->keyMap[ $cursor ];
	}
public function getKey( $cursor )
	{
		$this->calculateKeyMap();
		if( !array_key_exists( $cursor, $this->keyMap ) ) {
			return null;
		}

		return $this->keyMap[ $cursor ];
	}
Returns key by given cursor position.

@param int $cursor The cursor position to check.

@return mixed