|
Ds\Deque::setUpdates a value at a given index 説明
public void Ds\Deque::set(int
$index, mixed $value)Updates a value at a given index. パラメータ
戻り値値を返しません。 エラー / 例外OutOfRangeException if the index is not valid. 例例1 Ds\Deque::set example 上の例の出力は、 たとえば以下のようになります。
Ds\Deque Object
(
[0] => a
[1] => _
[2] => c
)
例2 Ds\Deque::set example using array syntax 上の例の出力は、 たとえば以下のようになります。
Ds\Deque Object
(
[0] => a
[1] => _
[2] => c
)
|