Dequeues a node from the queue

SplQueue::__construct
SplQueue::enqueue
SplQueue
PHP Manual

# SplQueue::dequeue

(PHP 5 >= 5.3.0)

SplQueue::dequeue — Dequeues a node from the queue

### Description

mixed SplQueue::dequeue ( void )

Dequeues `value` from the top of of the queue.

> Note: SplQueue::dequeue is an alias of SplDoublyLinkedList::shift.

### Parameters

This function has no parameters.

### Return Values

The value of the dequeued node.

SplQueue::__construct
SplQueue::enqueue
SplQueue
PHP Manual