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