[Fwd: Re: [PHP-DB] if variable is equal to 2 through 4]

From: Date: Wed, 06 Feb 2002 23:27:02 +0000
Subject: [Fwd: Re: [PHP-DB] if variable is equal to 2 through 4]
Groups: php.db 
Request: Send a blank email to php-db+get-16588@lists.php.net to get a copy of this message
$my_array = array ("2", "3", "4"); if (in_array($variable, $my_array)) { echo "hello"; } Jay Fitzgerald wrote:
i am currently using this code: if ($variable == 2) || ($variable == 3) || ($variable == 4) { echo "hello"; } how would I write it if I wanted to say this: if $variable == 2 through 4 ??? Should you have any questions, comments or concerns, feel free to call me at 318-338-2034. Thank you for your time, Jay Fitzgerald, Design Director - CSBW-A, CPW-A, CWD-A, CEMS-A ========================================================== Bayou Internet..............(888) 30-BAYOU........................http://www.bayou.com Mississippi Internet.......(800) MISSISSIPPI...............http://www.mississippi.net Vicksburg Online..........(800) MISSISSIPPI................http://www.vicksburg.com ==========================================================
Tel: (318) 338-2034                ICQ: 38823829
Fax: (318) 323-5053
-- "Out beyond the ideas of wrong-doing and right-doing there is a field. I'll meet you there." -Rumi *>>>>---------------->>>>(O)<<<<--------------------<<<<* indioblanco@centralcoasthealing.net *** under construction *** http://centralcoasthealing.net Healing Resources on the Central Coast http://kornsnake.com Internet Development -- "Out beyond the ideas of wrong-doing and right-doing there is a field. I'll meet you there." -Rumi *>>>>---------------->>>>(O)<<<<--------------------<<<<* indioblanco@centralcoasthealing.net *** under construction *** http://centralcoasthealing.net Healing Resources on the Central Coast http://kornsnake.com Internet Development

« previous php.db (#16588) next »