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', 2 => 'Returns a set of the map\'s 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', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Ds\Map::keys

(PECL ds >= 1.0.0)

Ds\Map::keysReturns a set of the map's keys

Açıklama

public Ds\Map::keys(): Ds\Set

Returns a set containing all the keys of the map, in the same order.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

A Ds\Set containing all the keys of the map.

Örnekler

Ö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"
}