Design Pattern: Observer Pattern in PHP
Observer pattern implements a publish/subscribe mechanism between objects. Some subscribing objects want to observe the state change of a specific object, and the observer pattern enables the publishing object(subject) to notify other objects about changes. This article demonstrates Observer pattern implementations in PHP.