src/Datastructure/Stackqueue/Queue.php
public function rear() {
        if (null === $this->queue) return null;
        if (!isset($this->queue[$this->head])) return null;
        return $this->queue[$this->head];
    }
public function rear() {
        if (null === $this->queue) return null;
        if (!isset($this->queue[$this->head])) return null;
        return $this->queue[$this->head];
    }
public function rear ( ) { if ( null === $ this -> queue ) return null ; if ( ! isset ( $ this -> queue [ $ this -> head ] ) ) return null ; return $ this -> queue [ $ this -> head ] ; }
returns the last item from the queue

@return int
returns the last item from the queue