Design Pattern: Memento Pattern in PHP
Memento pattern keeps track of the internal state of an object, so that the program can track back and restore to any previous state of the object. This pattern enables us to implement the undo of any state change. This article demonstrates Memento pattern implementations in PHP.