I know that if I have a function in PHP named "foo", I can call it dynamically in the following way:
$var = "foo";
$var();
And if foo is a method to an object named "bar", I can call it dynamically as follows:
$var = "foo";
$bar->$var();
The only problem here --- I need to dymaically specify not only the method of the object -- but I need to dynamically specify the object itself as well --- and pass the combination off to a library that utilizes the string convention for dynamic functions. Is there a way to do this?