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

From: Date: Fri, 28 Jan 2011 18:41:47 +0000
Subject: Re: "public static" or "static public"?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-311073@lists.php.net to get a copy of this message
On Fri, Jan 28, 2011 at 10:35 AM, Mujtaba Arshad <mujtabaar@gmail.com>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.

« previous php.general (#311073) next »