PHP » GoLang |
login |
register |
about
|
|
Ds\Vector::set(PECL ds >= 1.0.0) Ds\Vector::set — Updates a value at a given index DescriptionUpdates 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
<?phpThe above example will output something similar to:
Ds\Vector Object
(
[0] => a
[1] => _
[2] => c
)
Example #2 Ds\Vector::set() example using array syntax
<?phpThe above example will output something similar to:
Ds\Vector Object
(
[0] => a
[1] => _
[2] => c
)
|
more
Most requested
more
Last requests
|