You are here: Re: [PHP] better way to mix html and php code? « PHP « IT news, forums, messages
Re: [PHP] better way to mix html and php code?

Posted by Richard Davey on 11/16/05 18:27

Hi afan,

Wednesday, November 16, 2005, 4:12:53 PM, you wrote:

> always wondered what's better way to mix html and php code. Here are
> three "ways" of the same code. Which one you prefer? (And why, of
> caurse :))

Honestly, I wouldn't pick any of them :)

But if I had to (i.e. forced at gun-point or something) it'd have to
be #2, because it's at least mixing HTML and PHP in a way that doesn't
create massive strings, for no actual reason other than it is the
easiest format to go in and change the HTML without causing a
potential syntax error.

Cheers,

Rich
--
Zend Certified Engineer
PHP Development Services
http://www.corephp.co.uk

 

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

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