Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • This is not a question of advantage or disadvantage. Also, have you searched the site?
    – BoltClock
    Commented Jan 9, 2012 at 7:09
  • 4
    you don't need to create object to use static methods..And there's a lot of related questions!
    – meze
    Commented Jan 9, 2012 at 7:09
  • Yes, I was reading some from PHP Manual site, but I don't seem to understand why useing static methods, I only understood that instead of calling the public function like this -> I can do this :: and some other info I read about static methods on php manual site ...
    – Roland
    Commented Jan 9, 2012 at 7:13
  • @Roland This question is more related to the object-oriented paradigm in itself than to a specific language. Therefore, you might be better off reading through a introduction to static methods in general.
    – jensgram
    Commented Jan 9, 2012 at 13:01
  • 1
    Even though this is closed, it's the first thing I found whilst googling to answer my question as to what the difference is between static and non-static class functions in PHP. Thanks @meze Commented Oct 15, 2012 at 15:58