Re: if statement probable bug
| From: | Richard Davey | Date: | Thu, 24 Mar 2005 14:15:29 +0000 |
| Subject: | Re: if statement probable bug | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211466@lists.php.net to get a copy of this message | ||
Hello TheI2eptile,
Thursday, March 24, 2005, 2:05:14 PM, you wrote:
T> So here is what I would call a bug, but maybe it's thought to be so:
Try it with strict (data-type) comparisons, i.e.:
if ($var === "AS")
Then you won't get the "bug".
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov