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