pht\Vector::__constructVector creation 説明
public Vector pht\Vector::__construct
([ int
$size = 0
[, mixed $value = 0
]] )Handles the creation of a new vector. パラメータ
戻り値No return value. 例
例1 Creating a new vector
<?php 上の例の出力は以下となります。 object(pht\Vector)#1 (1) { [0]=> int(0) } object(pht\Vector)#2 (2) { [0]=> int(1) [1]=> int(1) } |