pht\Vector::shiftShifts a value from the vector 説明
public mixed pht\Vector::shift
( void
)
This method shifts a value from the front of a vector (in linear time). Shifting a value from an empty vector will result in an Error exception. パラメータこの関数にはパラメータはありません。 戻り値The value from the front of the vector. 例
例1 Shifting a value from a vector
<?php 上の例の出力は以下となります。 int(1) |