Re: "public static" or "static public"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 28, 2011 at 10:35 AM, Mujtaba Arshad <mujtabaar@xxxxxxxxx>wrote:

> Having learned java before even knowing what php was (yeah I'm a noob in
> both) I prefer scope static function.


I learned Java first, too, and also prefer the scope first. I place a scope
on every method, so I'd rather the first word always be the scope rather
than sometimes scope, sometimes static. I also think of it as a "static
function" that happens to be "public." Finally, I prefer to group static
members at the top of the class to differentiate them as a separate API for
the class itself.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux