PHP » GoLang |
login |
register |
about
|
GoLang Ds\Vector::insert
request it (668)
GoLang replacement for PHP's Ds\Vector::insert
[edit | history]
Ds\Vector::insert(PECL ds >= 1.0.0) Ds\Vector::insert — Inserts values at a given index DescriptionInserts values into the vector at a given index. Parameters
Return ValuesNo value is returned. Errors/ExceptionsOutOfRangeException if the index is not valid. ExamplesExample #1 Ds\Vector::insert() example
<?phpThe above example will output something similar to:
object(Ds\Vector)#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"
}
|
more
Most requested
more
Last requests
|