is there a way to traverse an object to get the parent object data? With \"parent object\" I don\'t mean the parent class, but literally object. Here an example, in a javasc
No.
You can access variables from the superclass using $this:
foo = 'hello'; } } class B extends A { public function printFoo() { echo $this->foo; } } $b = new B(); $b->printFoo(); ?>