Show Output
Example of Testing Whether a Variable is Empty in PHP
"; if(empty($var2)){ echo 'This line is printed, because the $var2 is empty.'; } echo "
"; if(empty($var3)){ echo 'This line is printed, because the $var3 is empty.'; } echo "
"; if(empty($var4)){ echo 'This line is printed, because the $var4 is empty.'; } echo "
"; if(empty($var5)){ echo 'This line is printed, because the $var5 is empty.'; } ?>