map_get($map, $key)
Returns the value in a map associated with the given key. If the map doesn’t have such a key, returns null
.
map_get($map, $key)
Returns the value in a map associated with the given key. If the map doesn’t have such a key, returns null
.
Examples:
map-get(("foo": 1, "bar": 2), "foo") => 1
map-get(("foo": 1, "bar": 2), "bar") => 2
map-get(("foo": 1, "bar": 2), "baz") => null
Parameters:
Returns:
Raises:
Designed by : w10schools
service@w10schools.com
Please login to continue.