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