PHP » GoLang |
login |
register |
about
|
GoLang Ds\Vector::copy
request it (625)
GoLang replacement for PHP's Ds\Vector::copy
[edit | history]
Ds\Vector::copy(PECL ds >= 1.0.0) Ds\Vector::copy — Returns a shallow copy of the vector Description
public Ds\Vector Ds\Vector::copy
( void
)
Returns a shallow copy of the vector. ParametersThis function has no parameters. Return ValuesReturns a shallow copy of the vector. ExamplesExample #1 Ds\Vector::copy() example
<?phpThe above example will output something similar to:
Ds\Vector Object
(
[0] => 1
[1] => 2
[2] => 3
)
Ds\Vector Object
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
|
more
Most requested
more
Last requests
|