Re: [PHP] if statement probable bug

2005-03-24 Thread Jochem Maas
TheI2eptile wrote: Probably this is the wrong place to put this but I couldn't search for not at all the wrong place, having said that the only thing probable with regard to you/your post is that you are not fully aware of the nature of data types in php and the way auto-typecasting works (in ter

Re: [PHP] if statement probable bug

2005-03-24 Thread Richard Davey
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.launchcod

[PHP] if statement probable bug

2005-03-24 Thread TheI2eptile
Probably this is the wrong place to put this but I couldn't search for the bug and what I saw in the bugs newsgroup was a bit strange and seem to be a log for the bugs forms. So here is what I would call a bug, but maybe it's thought to be so: if($var1 == "AS"){ echo "Why is this printe

[PHP] if statement probable bug

2005-03-24 Thread TheI2eptile
Probably this is the wrong place to put this but I couldn't search for the bug and what I saw in the bugs newsgroup was a bit strange and seem to be a log for the bugs forms. So here is what I would call a bug, but maybe it's thought to be so: if($var1 == "AS"){ echo "Why is this printe