Class Names:
-
Method Names:
The Java style is to concatenate words in multiword method names and uppercase the first letter of every word after the first. e.g.
class XML_RSS
{
function startHandler() {}
}
Naming Consistency:
Variables that are used for similar purposes should have similar names. e.g.
$max_element;
$min_element;
$sum_element;
$prev_item;
$curr_item;
$next_item;
-
Matching Variable Names to Schema Names:
Variable names that are associated with database records should always have matching names.
$query = "SELECT firstname, lastname, employee_id
FROM employees"
$results = mysql_query($query);
while(list($firstname, $lastname, $employee_id) = mysql_fetch_row())
{
//...
}
-
Documentation:
Use phpDocumentor to generate documentation on the fly. Please take a look at the software www.phpdoc.org.
Page: 1 2
=======================================================================================
Support Geeks Worldwide:Link to us:
You can support us by putting a link to our website on your blog or website (code is below).
<a href="http://www.techsww.com/">
Geeks Worldwide - Tutorials about Software Installation,
Configuration, Administration, Monitoring, Tools, Tips &
Tricks
</a>
OR a simple one.
<a href="http://www.techsww.com/">
Geeks Worldwide - IT related Tutorials
</a>
Feedbacks: We appreciate feedbacks and suggestions about our tutorials and Geeks Worldwide from readers. Please contact us using the form here and let us know what you think about the tutorial and the website in general.
Bookmark Us:
We are working on new features for the website, please keep visiting or bookmark us using your favourite bookmarking service.
Subscribe to RSS:
You can subscribe to our RSS feed here.
|
|