Can someone help me with following parser error. Thanx.
<?php
class a { function foo() { echo 'foo'; } }
class b { var $a;
function f() { this->$a[0] = new a;
// PARSER ERROR! this->$a[0]->foo();
} }
?>
... function f() { this->$a[0] = new a;
?> the syntax is $this->a[0]= new a; $this->a[0]->foo();
Any other ideas?