PHP assoziative Array -Schlüssel -EIXSTS überprüfen

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

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