Static methods in PHP

+1 Steven the awesome · August 26, 2015
Why and when do you really need to create a static method/variable in PHP?

Post a Reply

Replies

Oldest  Newest  Rating
0 jethro daniel · August 26, 2015
When laying out a class, Your mark any method or property that does not need any class resource like private fields, properties or methods. In some cases, you can use the static modifier with design patterns
  • 1

PHP

107,257 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators