pht\Vector::insertAtInserts a value into the vector 説明
public void pht\Vector::insertAt
( mixed
$value
, int $offset
)This method inserts a value at the specified offset into the vector (in linear time). The vector will automatically be resized if it is not large enough. パラメータ
戻り値No return value. 例
例1 Inserting a value into a vector
<?php 上の例の出力は以下となります。 object(pht\Vector)#1 (3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } |