OK, i have a function that takes in a mixed value, it can either be a number ranging from 0-7 or FALSE.
So, lets make a dummy function...
function testing($mixed){
if($mixed){
echo "its not false, i want 0-7 to trigger this";
}else{
echo "it is false, i want only FALSE to trigger this, not 0 too";
}
}
However, zero is also read as false by PHP. How do i stop this? i tried things like;
$mixed !=FALSE
$mixed === FALSE
but i had no luck. any suggestions are appreciated.
Thanks