Re: PHP 4.0 Bug #4865: Problem with != and 0

From: Date: Wed, 07 Jun 2000 13:17:09 +0000
Subject: Re: PHP 4.0 Bug #4865: Problem with != and 0
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-20464@lists.php.net to get a copy of this message
"Gustafson, Mårten" <marten@jerbro.se> writes: > I belive you should use the !== operator. Using != causes "JBIJI" to be > converted to an integer, which is 0 so the result is "is true" and that´s > true. Indeed this seems to be the case, although I feel there really should be better documentation about this ... for example !== doesn't even seem to be mentioned in the online documentation!, never mind a useful example of how != shouldn't be used ... Should I submit a feature request on the documentation? Regards Lee -- | Lee Willis Fixed cost Internet access available @ | Application Developer http://www.plus.net | PlusNet Technologies Ltd +---------------"PlusNet - The smarter way to Internet"----------------

« previous php.dev (#20464) next »