function MapInterface::removeIf
Removes the entry for the specified key only if it is currently mapped to the specified value.
This performs a strict type check on the value.
Parameters
K $key The key to remove from the map.:
T $value The value to match.:
Return value
bool true if the value was removed.
1 method overrides MapInterface::removeIf()
- AbstractMap::removeIf in vendor/
ramsey/ collection/ src/ Map/ AbstractMap.php - Removes the entry for the specified key only if it is currently mapped to the specified value.
File
-
vendor/
ramsey/ collection/ src/ Map/ MapInterface.php, line 115
Class
- MapInterface
- An object that maps keys to values.
Namespace
Ramsey\Collection\MapCode
public function removeIf(int|string $key, mixed $value) : bool;