HH\Vector::contains

Deprecated: Use Vector::containsKey() for key search or Vector::linearSearch() for value search

Returns true if the specified key is present in the Vector, returns false otherwise

public function contains(
  mixed $key,
): bool;

Parameters

  • mixed $key

Returns

  • bool