Kod PHP, aby sprawdzić, czy zmienna jest null
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)