Can PHP do an "IF" for 5-20

From: Date: Thu, 14 Dec 2000 17:17:53 +0000
Subject: Can PHP do an "IF" for 5-20
Groups: php.general 
Request: Send a blank email to php-general+get-30317@lists.php.net to get a copy of this message
Is there a way to do an "if" statement to include a series of numbers instead of matching just ONE? I know that you can use the "switch" operator, but I have a great multitude of numbers. Is "switch" the only answer? Example: if ($number == '5 through 20') { do something } Thanks -- Robert http://www.InternetSubmit.net Get Noticed! Submit your site to over 50,000 sites!

« previous php.general (#30317) next »