From what I understand, a variable that is either empty or is = 0 will return true if called in the empty() function.
In other words, the following code will evaluate to true:
$var = 0;
empty($var); // is true because $var is 0
So here's my problem... I want that function to actually be false for the above example. I need to do a check on some variables that all contain numbers. And if that number is 0, which it sometimes is, this function will tell me the variable is empty when in fact it contains valuable information for the purposes of my script. Is there some other function that will check if a variable is truly empty, even if it does equal zero?
Thanks,
Mark