Doing some code reviews lately I came across a number of classes that have significant number of static methods in them... and I can't seem to grasp why? Hence my question:
What are the best practices regarding using static methods in PHP?
When would one want to use them and when would one shouldn't use them?
What are specific difference in how runtime handles static methods? Do they affect performance or memory footprint?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…