Posted by PaowZ on 06/25/07 14:35
Hello there!
I'm searching a way to instanciate php5 class which names are
contained in a array.
Something like:
$class_name = myArray['class'] ;
$object = new $class_name()... of course, this syntax won't work..
that was just to explain :)
I use the magic __autoload function to include required classes, but I
can't find a way to instanciate a class from a string contained in a
array..
any idea ?
thanks a lot :)
Navigation:
[Reply to this message]
|