Anonymous class construction
问题 I need an idea to create anonymous class on PHP. I don't know how I can works. See my limitations : On PHP you can't make anonymous class, like anonymous function (like class {} ); On PHP you don't have class scope (except in namespaces, but it have the same problem below); On PHP you can't use variables to specify the class name (like class $name {} ); I don't have access to install the runkit PECL. What I need, and why : Well, I need create a function called ie create_class() that receives