Re: if variable is equal to 2 through 4

From: Date: Wed, 06 Feb 2002 21:18:54 +0000
Subject: Re: if variable is equal to 2 through 4
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-db+get-16585@lists.php.net to get a copy of this message
> how would I write it if I wanted to say this: > if $variable == 2 through 4 ??? if(( $variable >= 2 ) && ( $variable <= 4 )) { echo "Equals 2 through 4<br>\n"; } Chris

« previous php.db (#16585) next »