Ed. Added php pattern memento.