Hi, I have a question regarding $ this.
class foo { function __construct(){ $this->foo = 'bar'; } } class bar extends foo { function __construct() { $this->bar = $this->foo; } }
will be
$ob = new foo(); $ob = new bar(); echo $ob->bar;
lead to bar ??
I only ask because I thought it would be, but apart from my script, it does not seem to lead to what I thought.
php class extends
Phil jackson
source share