1// The is_null() function checks whether a variable is NULL or not. This function returns true (1) if the variable is NULL, otherwise it returns false/nothing.
2
3<?php
4 $var = NULL;
5 if (is_null($var)) {
6 echo "yes, is null";
7
8 } else {
9 echo "not null";
10 }
11?>
12