RE: [PHP] FILTER_VALIDATE_INT - newbie question
| From: | MEM | Date: | Wed, 07 Oct 2009 23:27:45 +0000 |
| Subject: | RE: [PHP] FILTER_VALIDATE_INT - newbie question | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298759@lists.php.net to get a copy of this message | ||
Thank you all for your replies.
The issue was "solved" for a better fitting solution on this case, that was
by using a regex expression.
I've not tested the difference between using == or ===. I was using !
But, the main question that is not clear on my newbie head is, "why how why"
couldn't this 0 be interpreted, neither as octal, or false, or whatever it
may be, but as just a humble numeric value of 0. At least on the cases where
FILTER_VALIDADE_INT is there.
Anyway, I cannot dig in into this because I'm actually unable to offer some
solutions.
So, as stated, the issue was solved, by using a regex, so all good here. ;)
Thanks once again,
Márcio