Hi I have a question regarding $this.
class foo {
function __construct(){
$this->foo = 'bar';
}
}
class bar extends foo {
function __construct() {
$this->bar = $this->foo;
}
}
would
$ob = new foo();
$ob = new bar();
echo $ob->bar;
result in bar
??
I only ask due to I thought it would but apart of my script does not seem to result in what i thought.