Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Static Methods/Properties

Status
Not open for further replies.

a6m1n0

Programmer
Mar 7, 2005
233
US
For the past six months or so I have become very fond of writing wrapper classes for just about everything I do in PHP. I find that I prefer to use static methods and properties most of the time.

Now I'm starting to wonder what are the advantages or disadvantages to using static methods and properties in my classes? Would it ever affect overall performance or future scalability?

The online PHP documentation doesn't really discuss this. I'm interested in feedback from programmers that have written and used static and non-static classes.

Thanks in advance.

-a6m1n0

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top