|
Ds\Vector::setUpdates a value at a given index Description
public void Ds\Vector::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\Vector::set example
The above example will output something similar to: Ds\Vector Object ( [0] => a [1] => _ [2] => c ) Example #2 Ds\Vector::set example using array syntax
The above example will output something similar to: Ds\Vector Object ( [0] => a [1] => _ [2] => c ) |