Julian Hofmann: gegenteil von isset

Beitrag lesen

Bei mir funzt das auch ohne existierende Variable...

Vielleicht, ist dann aber nicht wirklich das Gegenteil von isset(). Die Funktion prüft ja, ob eine Variable gesetzt ist. Das Gegenteil wäre also, dass sie nicht gesetzt ist.
empty() prüft ob sie einen Inhalt hat.

Ein $variable = "" führt also zu einem empty($variable) = true, ein !isset($variable) = false.

Grüße aus Würzburg
Julian