RE: PHP Standard style of writing your code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Martin Zvarík [mailto:mzvarik@xxxxxxxxx] 
Sent: Monday, April 24, 2006 10:51 PM
To: PHP
Subject:  PHP Standard style of writing your code


Hi,
    I see everyone has its own way of writing the code. If there is 10 
programmers working on same thing, it would be good if they would have 
same style of writing the PHP code.

So, my question is: Is there anything what would define standard style 
of writing PHP code?

Thanks,
Martin

----------

Again: all caps. PHP will think you're yelling at him and will work faster.

Seriously, if you use the same editor, and if it includes a source code
formatter, just use it.

Usually such editors will auto-indent.

It's usually common practive in PHP to never capitalize anything and to keep
it all lower-case, except for server objects like FORM, GET, etc..

Another good thing to remember is that English is our common language and
that it is usually a good practice to give variables an English name.

In ASP, capitalization is cool, for instance: Response.Write
TextFormatter(strBlahBlah)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux