class a
{
function get()
{
return 'a';
}
}
class b
{
function b()
{
$this->obj = new a;
$var = empty($this->obj->get());
}
}
What's wrong with this code?? I get:
Parse error: parse error, unexpected '(', expecting ')'
I can easily solve it by assigning a temp var to the $this->... but I am just curious about why it doesn't run. Anyone?
😕