Ds\Deque::insert

Ds\Deque::insert

(PECL ds >= 1.0.0)

Ds\Deque::insertInserts values at a given index.

Description

public void Ds\Deque::insert ( int $index [, mixed $...values ] )

Inserts values into the deque at a given index.

Parameters

index

The index at which to insert. 0 <= index <= count

Note:

You can insert at the index equal to the number o