Question : php code to check if variable is null
Answered by : yellowed-yak-81il7hyiltej
if(empty($var1)){ echo 'This line is printed, because the $var1 is empty.';
}
Source : | Last Update : Fri, 08 May 20
Question : php check for empty string
Answered by : nate-stringham
if (empty($var)) {
echo '$var is either 0, empty, or not set at all';
}
Source : https://www.php.net/manual/en/function.empty.php | Last Update : Sat, 14 Mar 20
Question : php check empty variable
Answered by : misty-meerkat-gi6u2nyf3vcd
empty var php
Source : | Last Update : Mon, 30 Nov 20