➤ 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
by Levani Makhareishvili
2 years ago
PHP
Function
1
Pro tip: use ```triple backticks around text``` to write in code fences