RE: [PHP] A quick question

From: Date: Wed, 11 Oct 2000 17:53:33 +0000
Subject: RE: [PHP] A quick question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19646@lists.php.net to get a copy of this message
On Wed, 11 Oct 2000, richard wrote: > try this : > > if (!($value="206.20.254.3")) { ^^^^^^^^^^ This code will always return true, because you are assigning "206.20.254.3" to $value, so you are never going to print any values. > echo "\$var = $value<BR>"; > } > > you must 'escape' the "$var" as it will think it is a variable not a > string, > and I have found that "!=" is unreliable ! > And != is unreliable ? I never experienced any problems with it. Joao -- Joao Prado Maia Web Developer Kefta, Inc. T: (415) 391-6881 ext 8008 F: (415) 391-7079

« previous php.general (#19646) next »