public function first()
    {
        $this->throwExceptionIfEmpty();

        $keys = $this->keys();
        $keyOfTheFirstElement = $keys->shift();
        return $this->offsetGet($keyOfTheFirstElement);
    }
public function first()
    {
        $this->throwExceptionIfEmpty();

        $keys = $this->keys();
        $keyOfTheFirstElement = $keys->shift();
        return $this->offsetGet($keyOfTheFirstElement);
    }
public function first ( ) { $ this -> throwExceptionIfEmpty ( ) ; $ keys = $ this -> keys ( ) ; $ keyOfTheFirstElement = $ keys -> shift ( ) ; return $ this -> offsetGet ( $ keyOfTheFirstElement ) ; }
Returns the first element, ignoring the type of the keys.
@return mixed
Returns the first element ignoring the type of the keys .