Answers for "php code to check if variable is null"

PHP
5

php code to check if variable is null

if(empty($var1)){
    echo 'This line is printed, because the $var1 is empty.';
}
Posted by: Guest on May-01-2020
7

php check for null

is_null($foo)
Posted by: Guest on February-29-2020

Code answers related to "php code to check if variable is null"

Browse Popular Code Answers by Language