SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 51 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


ucfirst ucfirst Converts the first character to uppercase.
ucwords
ucwords
Converts the first character of each word
to uppercase.
transcode
Converts a string from one encoding to
another. Requires the PHP iconv module.
Coding Standards
Using a standardized format makes code easier to read and allows other developers
to edit code more easily. Joomla! uses the PEAR coding standards. A complete guide
to the PEAR coding standards is available at http://pear.php.net/manual/en/
standards.php.
Here is a break down of the more common rules:
Indents are four spaces:
{
// four space before me!
Control structures have one space between the name and first parenthesis:
if (true) {
Use curly braces even when they are optional.
Functions and methods are named using the camelCase standard with a
lowercase first character.
Functions and method declarations have no spaces between the name and
first parenthesis. Parameter lists have no spaces at the ends. Parameters are
separated by one space: foo($bar0, $bar1, $bar2);
Optional function and method parameters must be at the end of the
parameter list.


Pages:
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63