Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- smth like Class.forName() in PHP?
- Sergei Riaguzov
April 12, 2008, 3:54 pm
rate this thread
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($_POST['className'])