NYCPHP Meetup

NYPHP.org

[nycphp-talk] Static Methods Usage

Cliff Hirsch cliff at pinestream.com
Fri Jan 6 14:07:30 EST 2006


As I refactor my code yet again, I am torn about whether to make
wide-spread use of static methods (in PHP 5) when appropriate.

The manual says:

"Declaring class members or methods as static makes them accessible
without needing an instantiation of the class....In fact static method
calls are resolved at compile time."

I presume this makes static method calls faster. But by enough to make
it worthwhile? Thoughts? Opinions? Suggestions?




More information about the talk mailing list