<?php class A { private $foo = 'bar'; } class B extends A { public function getFoo() { $array = (array)$this; return $array["\0A\0foo"]; } } $b = new B(); var_dump($b->getFoo());
You have javascript disabled. You will not be able to edit any code.