What’s $this?

August 31st, 2006. Tagged: PHP certification

Simple question, what's $this - a or b?

class a {
    function aa(){

class b {
    function bb(){

$b_obj = new b;

Answer: object(b)#1 (0) { }

Tell your friends about this post: Facebook, Twitter, Google+

Sorry, comments disabled and hidden due to excessive spam. Working on restoring the existing comments...

Meanwhile, hit me up on twitter @stoyanstefanov