You are here: Re: [PHP] Alternative control structure syntax « PHP « IT news, forums, messages
Re: [PHP] Alternative control structure syntax

Posted by Richard Lynch on 04/07/05 07:29

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация