I have the following situation : <?php class A { public $var1; } class B extends A { public $var2; } ?> Now I want to print this object <?php $obj = new B; print_r($obj); ?> Does anybody know how I can print class A also ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php