"public static" or "static public"?
From PSR-2:
Visibility MUST be declared on all properties and methods; abstract and final MUST be declared before the visibility; static MUST be declared after the visibility. [reference]
...if you are one to care about the PHP Framework Interop Group standard and conventions.
So public static
not static public
according to them.
Languages like Java and C# require that the access modifier come first so Edit: The previous struck line is completely false. Neither language has this requirement.
public static
looks correct to me. Arguments can be made for both approaches and mine is this: Since "static" qualifies the function rather than the access modifier it makes more sense to say
<access_modifier> static
If you use it the other way around the meaning of "static" is less clear.