[PHP] Reusing Anonymous Classes
I recently had need for an anonymous class that would be generated by a function call. The function would take certain arguments, and use those to control the properties available in the class. The idea was that the class itself would also have a constructor that could accept certain necessary data, and so I could control a class's functionality dynamically, and also populate its data dynamically. If...