On The Web by Ircmaxell
GNU/GPL PageCache Joomla! APC php5 Lighttpd! Redhat
Home arrow Articles arrow Programing Articles arrow Writing Good Php Code
Thursday, 20 November 2008
 
 
Featured Site
Main Menu
Home
Articles
Services
Portfolio
Version Information
Bug Tracker
F.A.Q.
Downloads
Forum
Contact Us
Text Link Ads
Latest Version
Feed Icon Page Cache 1.0.8 stable
Release Date: 2007-06-11
Donate!
Login
Syndicate
Writing Good Php Code PDF
User Rating: / 0
PoorBest 
Written by ircmaxell   
Monday, 02 April 2007
Article Index
Writing Good Php Code
Page 2
Page 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)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


busy

Last Updated ( Thursday, 05 July 2007 )
 
< Prev
Loans - Credit Counseling - Credit Card - Mortgage
 
Top! Top!
Generated in 0.63335514068604 Seconds