array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'ds-map.keys.php', 1 => 'Ds\\Map::keys', ), 'up' => array ( 0 => 'class.ds-map.php', 1 => 'Ds\\Map', ), 'prev' => array ( 0 => 'ds-map.jsonserialize.php', 1 => 'Ds\\Map::jsonSerialize', ), 'next' => array ( 0 => 'ds-map.ksort.php', 1 => 'Ds\\Map::ksort', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ds/ds/map/keys.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL ds >= 1.0.0)
Ds\Map::keys — Returns a set of the map's keys
Returns a set containing all the keys of the map, in the same order.
Bu işlevin bağımsız değişkeni yoktur.
A Ds\Set containing all the keys of the map.
Örnek 1 Ds\Map::keys() example
<?php
$map = new \Ds\Map(["a" => 1, "b" => 2, "c" => 3]);
var_dump($map->keys());
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
object(Ds\Set)#2 (3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" }