|
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
Return ValuesNo value is returned. Errors/ExceptionsOutOfRangeException if the index is not valid. ExamplesExample #1 Ds\Deque::insert example The above example will output something similar to:
object(Ds\Deque)#1 (7) {
[0]=>
string(1) "a"
[1]=>
string(1) "b"
[2]=>
string(1) "c"
[3]=>
string(1) "d"
[4]=>
string(1) "e"
[5]=>
string(1) "f"
[6]=>
string(1) "g"
}
|