| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Ds\Vector::slice(PECL ds >= 1.0.0) Ds\Vector::slice — Returns a sub-vector of a given range. 説明
public Ds\Vector Ds\Vector::slice
( int
$index
[, int $length
] )Creates a sub-vector of a given range. パラメータ
返り値A sub-vector of the given range. 例例1 Ds\Vector::slice() example
<?php上の例の出力は、 たとえば以下のようになります。
Ds\Vector Object
(
[0] => c
[1] => d
[2] => e
)
Ds\Vector Object
(
[0] => b
[1] => c
[2] => d
)
Ds\Vector Object
(
[0] => b
[1] => c
[2] => d
[3] => e
)
Ds\Vector Object
(
[0] => d
[1] => e
)
Ds\Vector Object
(
[0] => b
[1] => c
[2] => d
)
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Ds\Vector::slice - Returns a sub-vector of a given range.」をGoogle検索
|