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

        $keys = $this->keys();
        $keyOfTheLastElement = $keys->pop();
        return $this->offsetGet($keyOfTheLastElement);
    }
public function last()
    {
        $this->throwExceptionIfEmpty();

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