código PHP para verificar si la variable es nula
if(empty($var1)){
echo 'This line is printed, because the $var1 is empty.';
}
Yellowed Yak
if(empty($var1)){
echo 'This line is printed, because the $var1 is empty.';
}
is_null($foo)