ConstIndexAccess::containsKey

Determines if the specified key is in the current collection

public function containsKey(
  mixed $k,
): bool;

Guide

Parameters

  • mixed $k

Returns

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