Check whether a variable is NULL or not:
<?php$a = 0;echo "a is " . is_null($a) . "<br>";$b = null;echo "b is " . is_null($b) . "<br>";$c = "null";echo "c is " . is_null($c) . "<br>";$d = NULL;echo "d is " . is_null($d) . "<br>";?>Content Under CC-BY-SA licensePHP: is_null - Manual
Explore further
PHP is_null() Function - W3Schools
PHP is_null() and ==null - Stack Overflow
- People also ask
PHP is_null - PHP Tutorial
PHP is_null() function (with example) - learnphp.org
How to check whether a variable is null in PHP - Tutorial Republic
PHP: is_null - Manual - php.sh
PHP NULL - PHP Tutorial
Getting the Most Out of PHP's is_null() Function
PHP | is_null() Function - GeeksforGeeks
- Some results have been removed