You are here: Re: modifying 'for... loop ' with php to leave out one number « PHP Programming Language « IT news, forums, messages
Re: modifying 'for... loop ' with php to leave out one number

Posted by Alvaro G. Vicario on 11/04/65 11:54

*** Ian Davies escribió/wrote (Tue, 01 Aug 2006 10:53:54 GMT):
> I also realised this too and have decides afterall to go with the if
> statement by Miquel (THANKS MIQUEL) as there will be less lines of code. Do
> you know if there is a performance advantage over the switch method?

Don't care about performance at this level. Just try to do what best suits
your code logic: it's far more important to understand your code several
months after your wrote it.

Typical performance issues are more like:

* Fetching 5000 database records to display the top 5
* Dynamically generating the very same thumbnail every time it's requested
* Loading a full 20MB text file into memory to process it line by line

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

 

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

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