php verifikasi kunci array asosiatif eixsts

$array = ["key" => "value"];

if (array_key_exists("key", $array)) {
  echo "Key exists";
}
Willian Pinheiro