HH\ImmMap::containsKey

Determines if the specified key is in the current ImmMap.

Description

public function containsKey(
  Tu $k,
): bool

Determines if the specified key is in the current ImmMap.

This function is interchangeable with contains().

Parameters

  • Tu $k - The key to check.

Return Values

  • bool - true if the specified key is present in the current ImmMap; false otherwise.

Examples

See Map::containsKey for usage examples.