hi i want to create an object instance from a string
i know that the following method works
but i want to pass parameters as well, number of parameters is not a
constant and it is a passed as an array
it there a way to do this, im looking for something like
call_user_func_ array where you can execute function with parameters as array
Regards
Chathura Bamunusinghe
i know that the following method works
Code:
$className = "Foo"; $object = new $className();
constant and it is a passed as an array
it there a way to do this, im looking for something like
call_user_func_ array where you can execute function with parameters as array
Regards
Chathura Bamunusinghe
Comment