Determines whether the map contains a given value.
$value
value
The value to look for.
Returns TRUE if the value could found, FALSE otherwise.
TRUE
FALSE
Example #1 Ds\Map::hasValue example
<?php$map = new \Ds\Map(["a" => 1, "b" => 2, "c" => 3]);var_dump($map->hasValue(1)); // truevar_dump($map->hasValue(4)); // false?>
The above example will output something similar to:
bool(true) bool(false)