| Writing Good Php Code |
|
| Written by ircmaxell | |||||
| Monday, 02 April 2007 | |||||
Page 3 of 3
Text Styles Code When writing code, there are a few conventions that can make reading and understanding the code easier (as well as making the code more reliable). The most important of these is the opening PHP bracket (or other imbedded scripting language). Don’t just put in <? as the start of your code. Whenever opening PHP, use the full opening tag <?php. This makes for better readability as the start of a PHP block is apparent, as well as ensures the parser realizes that the code is PHP and not another scripting language. Always code in lowercase for native PHP functions. You can use mixed case and uppercase for variable names and custom classes/functions, but whenever dealing with standard PHP, always leave them lowercase. Trackback(0)
Comments (0)
![]() Write comment
|
|||||
| Last Updated ( Thursday, 05 July 2007 ) | |||||
| < Prev |
|---|













