Before I begin, let me state that I agree entirely with others who have said that lambda functions and closures aren’t meant to allow you to dynamically extend classes at runtime, what I disagree with is the assertion that there are other ways of doing this. Currently there is no other way of doing this, and while I don’t think ...more
Posts Tagged with code
Dynamically adding methods and static methods onto classes at runtime in PHP5.3
March 5 -
0 Comments
Edit