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

        $key_last = \array_key_last($this->array);

        if ($key_last === null) {
            return null;
        }

        return $this->get($key_last);
    }
public function last()
    {
        $this->generatorToArray();

        $key_last = \array_key_last($this->array);

        if ($key_last === null) {
            return null;
        }

        return $this->get($key_last);
    }
public function last ( ) { $ this -> generatorToArray ( ) ; $ key_last = \ array_key_last ( $ this -> array ) ; if ( $ key_last === null ) { return null ; } return $ this -> get ( $ key_last ) ; }
Get the last value from the current array.

@return mixed
<p>Return null if there wasn't a element.</p>
Get the last value from the current array .