Is there a way to create an instance of a class SomeClass in PHP having
a string "SomeClass" ? The idea is to create instances on classes based
on dynamic information obtained from $_POST. Like
Java has a useful construct for that - Class.forName() . Is it possible
to do same in PHP? Like:
$obj = createClass($_P OST['className'])
or smth?
a string "SomeClass" ? The idea is to create instances on classes based
on dynamic information obtained from $_POST. Like
Java has a useful construct for that - Class.forName() . Is it possible
to do same in PHP? Like:
$obj = createClass($_P OST['className'])
or smth?
Comment