pht\Vector::pushPushes a value to the vector 説明
public void pht\Vector::push
( mixed
$value
)This method pushes a value onto the end of a vector (in constant time). The vector will automatically be resized if it is not large enough. Since the pht\Vector class supports array access, new values can also be pushed onto the vector using the empty subset notation ([]). パラメータ
戻り値No return value. 例
例1 Pushing values to a vector
<?php 上の例の出力は以下となります。 object(pht\Vector)#1 (2) { [0]=> int(1) [1]=> int(2) } |