Predefined function reference

map_get

A reference entry for map_get

Predefined function · maps

map_get (map a, mixed k) ⇒ mixed

If the map, a, contains the key, k, it will return the value associated to that key.

Alternative function names: associative_array_get

Notes

Version 1.4.2 dropped the alternative name assoc_get and added the map_get alternative name.

Version 1.9.9 switched from associative_array_get to map_get.