pht\Vector::updateAtUpdates a value in the vector 説明
public void pht\Vector::updateAt
( mixed
$value
, int $offset
)This method updates a value at the specified offset in the vector (in linear time). The vector will automatically be resized if it is not large enough. Since the pht\Vector class supports array access, updating values can also be performed using the array subset notation ([]). パラメータ
戻り値No return value. 例
例1 Updating a value in a vector
<?php 上の例の出力は以下となります。 object(pht\Vector)#1 (2) { [0]=> int(3) [1]=> int(4) } |