Timeline for PHP | Why should I use public static / private static function instead of public / private function? [closed]
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 31, 2016 at 2:57 | review | Reopen votes | |||
Mar 31, 2016 at 7:09 | |||||
Oct 15, 2012 at 15:58 | comment | added | jdstankosky | 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 | |
Jan 9, 2012 at 13:39 | history | closed | casperOne | not constructive | |
Jan 9, 2012 at 13:01 | comment | added | jensgram | @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. | |
Jan 9, 2012 at 7:27 | vote | accept | Roland | ||
Jan 9, 2012 at 7:19 | answer | added | Will Vousden | timeline score: 22 | |
Jan 9, 2012 at 7:13 | comment | added | Roland |
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 ...
|
|
Jan 9, 2012 at 7:09 | comment | added | meze | you don't need to create object to use static methods..And there's a lot of related questions! | |
Jan 9, 2012 at 7:09 | comment | added | BoltClock | This is not a question of advantage or disadvantage. Also, have you searched the site? | |
Jan 9, 2012 at 7:07 | history | asked | Roland | CC BY-SA 3.0 |