Re: Alternative control structure syntax

From: Date: Thu, 07 Apr 2005 04:29:44 +0000
Subject: Re: Alternative control structure syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212504@lists.php.net to get a copy of this message
On Wed, April 6, 2005 8:21 pm, Dan Rossi said: > Does anyone use it, is it more efficient on the compiler and coding to > do this > > switch($i): > case 0: > > break; > endswitch; > > instead of this ? > > switch($i) { > case 0: > > break; > } The alternative syntax, as far as I know, is to maintain compatibility with PHP/FI (aka PHP 2) from waaaaaaaaay back in time. I don't think anybody really uses it any more, but it's easier to leave it alone then to rip it out. I seriously doubt there is any measurable performance difference in any real-world scenario. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#212504) next »