I have a function that returns the value of a variable inside an object like so :
public function getVar($var)
{
return ($this->$var);
}
It works fine, but I cannot find a way to get the value of an array stored inside a variable. I thought something like this would work :
$object->getVar("variable['value']");
but it doesn't .... How can i do that ?
Thanks !