On Tuesday 14 September 2004 02:18, Gryffyn, Trevor wrote: > In some other languages, you could put your range of values in the "case" > statements, but not PHP I guess.
switch(true) { case (expr1) : //do something; break; case (expr2) : //do something else; break; } Season to taste. -- 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 ------------------------------------------ /* Very few profundities can be expressed in less than 80 characters. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php