Typen
PHP Manual

NULL

Der spezielle Wert NULL repräsentiert eine Variable ohne Wert. NULL ist der einzig mögliche Wert des Typs null.

Eine Variable gilt als vom Typ null wenn:

Syntax

Es gibt nur einen Wert vom Typ null: die Konstante NULL (Groß- und Kleinschreibung ist dabei nicht wichtig).

<?php
$var 
NULL;       
?>

Siehe auch die Funktionen is_null() und unset().

Umwandlung in NULL

Warnung

This feature has been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.

Die Umwandlung einer Variable auf den Typ null durch (unset) $var entfernt die Variable nicht und löscht nicht ihren Inhalt. Es wird lediglich ein NULL Wert zurück gegeben.


Typen
PHP Manual