Hello there, http://us3.php.net/manual/en/function.print-r.php states: print_r() and var_export() will also show protected and private properties of objects with PHP 5.
The German translation goes even a bit further and says: print_r() und var_export() zeigen mit PHP 5 auch private und geschützte Eigenschaften von Objekten an, im Gegensatz zur Funktion var_dump(). ( last sentence =unlike the function var_dump()) http://us3.php.net/manual/de/function.print-r.php Is this a documentation "bug" (as it implies that var_dump should not put out all private properties) or is this a bug in var_dump()? And is there then a method to dump only public properties in PHP5? Greetings, Florian