Reply to Re: print "..." question

Your name:

Reply:


Posted by J.O. Aho on 03/19/06 17:40

Steff wrote:
> I am wandering if my code is making sense... I use a lot the print function.
> Is it weird in this case where I have to display an array ? I thought it
> would be better to have the entire array in php but now I am not sure if
> that makes sense. Can you tell me please ?

Yes, you have a lot of print/echo in your PHP. IMHO the best is to keep pure
HTML outside the PHP, specially when you have big pieces of HTML to output.
Try as much as only use print/echo when you need to output dynamic stuff and
pure HTML when you have static output.

You will make it easier to read the code when not using so much echo/print and
on quite slow systems you may see a performance increase without these prints.

Not sure what you mean with array, as I didn't manage to locate one in your code.


//Aho

[Back to original 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

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