Re: wierd if statement problem

From: Date: Wed, 21 May 2003 07:11:24 +0000
Subject: Re: wierd if statement problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-148378@lists.php.net to get a copy of this message
On Wednesday 21 May 2003 14:38, daniel@electroteque.org wrote: > check this > > $g = "1" ; > > if (($g!=="1") || ($g!=="2")) die("no"); > or > if (($g!="1") || ($g!="2")) die("no"); > or > > if ($g!="1" || $g!="2") die("no"); > > none of these combinations work , i'm pretty sure this has worked for me in > the past i'm running php 4.3.1 and apache 1.3 Define "none of these combinations work". The following "works" or "don't work" depending on whether you wanted to print "hello" or "world". echo "hello" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* You put the disk in upside down. */

« previous php.general (#148378) next »