If you do:
$this->$this->name->something();
You will surely get an error.
I’ve been doing something like:
$name =& $this->name;
$this->$name->something();
But is there a better way for doing that? Would it be easier if PHP had some way of doing something like:
$this->'$this->name'->something();
Thanks!
There is;
But… what are you doing? Do you really need this? It seems like an odd construct from where I’m standing.