Ds\Collection::copyReturns a shallow copy of the collection 説明
public Ds\Collection Ds\Collection::copy()
Returns a shallow copy of the collection. パラメータこの関数にはパラメータはありません。 戻り値Returns a shallow copy of the collection. 例例1 Ds\Collection::copy example 上の例の出力は、 たとえば以下のようになります。
Ds\Vector Object
(
[0] => 1
[1] => 2
[2] => 3
)
Ds\Vector Object
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
|