NULL
The null type is PHP's unit type, i.e. it has only one value: null.
The null type is PHP's unit type, i.e. it has only one value: null.
Undefined and unset() variables resolve to the value null.
Syntax
There is only one value of type null, and that is the case-insensitive constant null.
<?php
$var = NULL;
?>Casting to null
Removed-8-0-0
Casting a variable to null using (unset) $var will not remove the variable or unset its value. It will only return a null value.