pht\Vector::resizeResizes a vector 説明
public void pht\Vector::resize
( int
$size
[, mixed $value = 0
] )
Resizes the vector. If it is enlarged, then the パラメータ
戻り値No return value. 例
例1 Resizing a vector
<?php上の例の出力は以下となります。
object(pht\Vector)#1 (1) {
[0]=>
int(0)
}
object(pht\Vector)#1 (2) {
[0]=>
int(0)
[1]=>
int(1)
}
object(pht\Vector)#1 (1) {
[0]=>
int(0)
}
|