Dostupnost ve verzích: PHP 4.0
Fetch a key from an array
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$array |
array |
není | The array. |
mixed
The key function simply returns the
key of the array element that's currently being pointed to by the
internal pointer. It does not move the pointer in any way. If the
internal pointer points beyond the end of the elements list or the array is
empty, key returns &null;.
Oficiální dokumentace funkce key
Jan Barášek Více o autorovi
Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.
Rád vám pomůžu:
Články píše Jan Barášek © 2009-2025 | Kontakt | Mapa webu
Status | Aktualizováno: ... | cs