I need help with this:
$foo = array ('Projects', 'Clients');
And I need to run functions from pre-installed library
$bar->getProjects()->data
$bar->getClients()->data
etc. etc.
but I have it in the cycle. So I want something like
foreach($foo as $value)
$return_value = $bar->get >>>>$value<<<< ()->data
How can this be done?