The SplQueue class

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Introduction

The SplQueue class provides the main functionalities of a queue implemented using a doubly linked list.

Class synopsis

class SplQueue extends SplDoublyLinkedList {
/* Methods */
public dequeue(): mixed
public enqueue(mixed $value): void
public setIteratorMode(int $mode): void
/* Inherited methods */
public SplDoublyLinkedList::add(int $index, mixed $value): void
public SplDoublyLinkedList::offsetExists(int $index): bool
public SplDoublyLinkedList::offsetSet(?int $index, mixed $value): void
public SplDoublyLinkedList::offsetUnset(int $index): void
public SplDoublyLinkedList::push(mixed $value): void
public SplDoublyLinkedList::unserialize(string $data): void
public SplDoublyLinkedList::unshift(mixed $value): void
}

Table of Contents