pht\Vector::sizeGets the size of the vector 説明
public int pht\Vector::size
( void
)
Returns the current size of the vector. This operation requires a pht\Vector's mutex lock to be held if it is being used by multiple threads. パラメータこの関数にはパラメータはありません。 戻り値The size of the vector. 例
例1 Getting a vector's size
<?php 上の例の出力は以下となります。 int(3) |