I have an array $run
that hold $run[0] - class name
and $run[1] - class method to run
and i want to be able to do this :
// this is working ok
$class = new $run[0]();
// this is error
$class->$run[1]();
What is the best and most elegant way of doing this ?
Thanks