Always pay attention to these functions.
$a = 0;
// isset() - treats $a as not empty
if(isset($a))
echo "a has ".$a;
// empty() - treats $a as empty
having trouble with empty() with the editor
if(empty($a))
echo "a has ".$a;
both functions will display "a has 0".
0 comments
Post a Comment