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 on Facebook and Twitter

Sorry, comments disabled and hidden due to excessive spam.

Meanwhile, hit me up on twitter @stoyanstefanov