You are here: Re: [PHP] php style guides « PHP « IT news, forums, messages
Re: [PHP] php style guides

Posted by Zouari Fourat on 10/04/70 11:05

try http://pear.php.net/manual/en/standards.php


On Wed, 12 Jan 2005 23:34:59 +1030, Tim Burgan <email@timburgan.com> wrote:
> Hi everyone,
>
> What 'rules' do you follow about styling/formatting your PHP code? Do
> you follow a guide that is available online?
>
> I generally have my own preference for formatting like
>
> if ( condition )
> {
> statements;
> }
>
> for all conditional statements and loops, as opposed to
>
> if (condition) {
> statements;
> }
>
> But what I'm really wanting to get everyones thoughts about is in regard
> to combining PHP with HTML.
>
> I used to do:
>
> <?php
> echo "blah";
> ?><h1>test</h1><?php
> echo "blah";
> ?>
>
> but just tried
>
> <?php
> echo 'blah';
> echo '<h1>test</h1>';
> echo 'blah';
> ?>
>
> which I find it's much easier to read to code.
>
> What do other people do and for what reason? What are the
> advantages/disadvantages to doing it certain ways?
>
> Thanks for your time.
>
> Tim
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

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

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