You are here: ECHO or concatenation with single quote, for performance? « PHP Programming Language « IT news, forums, messages
ECHO or concatenation with single quote, for performance?

Posted by L. Berger on 05/30/07 17:20

Hi,

I am working on an HTML template which has a lot of html tags, with
PHP data shown in the middle of these tags -- you know, the usual.
Currently, I have HTML as is, and many many "echo $variable"
statements mixed in as PHP code.

My question: should I leave it like this, with ECHO statements
embedded within the tags,

Or

Should I concatenate the HTML within single quotes (single quotes are
supposed to be faster in PHP than double quotes) and the display data
as variables, and then ECHO that one concatenated string?

Any experiences or pointers would be great!

Thanks
LB

 

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

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