How to see inside a PHP object
<p>I am working with a 3-rd party library and it makes some random call like this:</p>

<pre><code>$consumer = getConsumer();
</code></pre>

<p>And I don't know what are the values inside the $consumer variable
I tried to do something like this:</p>

<pre><code>echo '&lt;p&gt;consumer: '.$consumer.'&lt;/p&gt;';
</code></pre>

<p>but that just crashed the page :) What is the real way for me to see what objects and values are in this $consumer object? And whats the best way to extract them?</p>

<p>Thanks!</p>
