suppose
$test = '';
if(empty($test)){ $test = "not found";}
echo $test;
the above case the answer will be "not found"
but below one even though the $test
variable is empty but result give nothing.
$test = ' ';
if(empty($test)){ $test = "not found";}
echo $test;
how we can treat both these variables as empty in PHP??