Re: [PHP] public static or static public?

2011-01-31 Thread Richard Quadling
On 28 January 2011 17:15, Colin Guthrie gm...@colin.guthr.ie wrote: OK, so it's a Friday hence a random debate What is preferred for class methods? class foo {  static public function bar(){}  public static function wibble(){} } ?? All methods are valid, but are some more valid

RE: [PHP] public static or static public?

2011-01-31 Thread Bob McConnell
From: Richard Quadling On 28 January 2011 17:15, Colin Guthrie gm...@colin.guthr.ie wrote: OK, so it's a Friday hence a random debate What is preferred for class methods? class foo {  static public function bar(){}  public static function wibble(){} } ?? All methods are valid,

Re: [PHP] public static or static public?

2011-01-31 Thread David Harkness
On Mon, Jan 31, 2011 at 3:51 AM, Richard Quadling rquadl...@gmail.comwrote: I've just done a quick scan of all my methods ... I just did the same scan on my code, and the clear majority was private abstract final function YMMV David

Re: [PHP] public static or static public?

2011-01-31 Thread Mujtaba Arshad
I suppose it comes down to preference of the programmer, since there is no standardized rule for it, people adapt it as they find it convenient at the time. On Mon, Jan 31, 2011 at 1:52 PM, David Harkness davi...@highgearmedia.comwrote: On Mon, Jan 31, 2011 at 3:51 AM, Richard Quadling

Re: [PHP] public static or static public?

2011-01-28 Thread Fernando
I personally like scope static fucntion. Coming from C# it just makes more sense to me. JF. On 28/01/2011 12:15, Colin Guthrie wrote: OK, so it's a Friday hence a random debate What is preferred for class methods? class foo { static public function bar(){} public static function

Re: [PHP] public static or static public?

2011-01-28 Thread Mujtaba Arshad
Having learned java before even knowing what php was (yeah I'm a noob in both) I prefer scope static function. On Fri, Jan 28, 2011 at 12:20 PM, Fernando ferna...@ggtours.ca wrote: I personally like scope static fucntion. Coming from C# it just makes more sense to me. JF. On 28/01/2011

Re: [PHP] public static or static public?

2011-01-28 Thread David Harkness
On Fri, Jan 28, 2011 at 10:35 AM, Mujtaba Arshad mujtab...@gmail.comwrote: 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