Merhaba ben $ this ile ilgili bir sorum var.
class foo {
function __construct(){
$this->foo = 'bar';
}
}
class bar extends foo {
function __construct() {
$this->bar = $this->foo;
}
}
-cekti
$ob = new foo();
$ob = new bar();
echo $ob->bar;
bar
neden?
I only ask due to I thought it -cektibut apart of my script does not seem to result in what i thought.