I just wanted to see if someone has a good solution to this issue. From a function, I am expecting a return value of an integer (including zero) or a FALSE. My issue is if I have a condition statement and zero is returned it will be evaluated the same as FALSE. Does anyone have an idea how to evaluate the condition so that zero and FALSE are not ambiguous.
Thanks
Type evaluations can be done with the === operator.
if(doFunction() === FALSE) { echo "It was false"; } else { echo "It was not"; }
Also there are type specific functions such as is_int().
you da man, happy april fools day.