Re: Multiple "if()" statements

From: Date: Fri, 30 Jun 2006 20:34:11 +0000
Subject: Re: Multiple "if()" statements
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-239023@lists.php.net to get a copy of this message
On Thu, June 29, 2006 11:07 pm, Larry Garfield wrote: > switch is fine if your elseif comparisons are equality based. If > they're not > equality based, then they don't map to switch as well. Except in PHP which supports: switch(TRUE) { case _boolean_expression_: break; } So you can have case statements of whatever complexity is appropriate. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#239023) next »