➤ By using the is_null function, we can check whether
the variable is NULL or not.
returns true if var is null, otherwise false.
• returns true if parameter is null, otherwise false.
$bool = TRUE;
if (is_null($bool))
{
echo 'Variable is NULL';
}
else
{
echo 'Variable is not NULL';
}
// outputs : Variable is not NULL