Version 40 by Gavin
on Jan 25, 2007 11:01.

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
Methods must always declare their visibility by using one of the {{private}}, {{protected}}, or {{public}} constructs.

Following the more common usage in the PHP developer community, static methods should declare their visibility first:
{code}
public static foo() { ... }
private static bar() { ... }
protected static goo() { ... }
{code}

As for classes, the opening brace for a function or method is always written on the line underneath the function or method name ("one true brace" form). There is no space between the function or method name and the opening parenthesis for the arguments.