Static methods vs singletons: choose neither
Static call versus Singleton call in PHP, compares the performance of a singleton class with that of a static method. This is relevant, of course, because popular PHP frameworks such as symfony and Zend Framework make use of the singleton design pattern for their factory registry. What’s the verdict?
Want to have your say? just login


Be first to show your opinion !!!