|
Ds\Deque::setUpdates a value at a given index Description
public void Ds\Deque::set(int
$index , mixed $value )Updates a value at a given index. Parameters
Return ValuesNo value is returned. Errors/ExceptionsOutOfRangeException if the index is not valid. ExamplesExample #1 Ds\Deque::set example
The above example will output something similar to: Ds\Deque Object ( [0] => a [1] => _ [2] => c ) Example #2 Ds\Deque::set example using array syntax
The above example will output something similar to: Ds\Deque Object ( [0] => a [1] => _ [2] => c ) |