I use this almost every day. It's one of the most useful PHP debugging tools. You can print all of the contents of a variable (class, array or scalar) to get an idea of how the structure looks.
<?php
print "<pre>";
print_r($variable);
print "</pre>";
?>