Re: If...Or...Else

From: Date: Sat, 24 Jul 2004 14:05:29 +0000
Subject: Re: If...Or...Else
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191737@lists.php.net to get a copy of this message
> <?php > if ((condition1 == TRUE) OR (condition2 == TRUE)) { > do something; > } esle { > do something else; > } > ?> > > What's the correct syntax for the If line? if(true == condition1 || true == condition2) { echo "Hello World"; } else { echo "Best Regards"; }

« previous php.general (#191737) next »