Determines whether the map contains a given value
$value
Determines whether the map contains a given value.
value
The value to look for.
Returns true if the value could found, false otherwise.
true
false
例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?>
上の例の出力は、 たとえば以下のようになります。
bool(true) bool(false)