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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to