Simple question, what's $this - a or b?
<?php
class a {
function aa(){
var_dump($this);
}
}
class b {
function bb(){
a::aa();
}
}
$b_obj = new b;
$b_obj->bb();
?>
Answer: object(b)#1 (0) { }
Comments? Find me on
BlueSky,
Mastodon,
LinkedIn,
Threads,
Twitter