pht\Vector::deleteAtDeletes a value in the vector 説明
public void pht\Vector::deleteAt
( int
$offset
)This method deletes a value at the specified offset in the vector (in linear time). Since the pht\Vector class supports array access, deleting values can also be performed using the array subset notation ([]) in combination with the unset function. パラメータ
戻り値No return value. 例
例1 Deleting values in a vector
<?php 上の例の出力は以下となります。 object(pht\Vector)#1 (2) { [0]=> int(1) [1]=> int(4) } |