PHP parsing from print_r()
<p>I'm working with some API integration and I have a limitation with understanding Objects.</p>

<p>Not my code, but here's what I have:  </p>

<pre><code>&lt;?php
print_r(pingSample());
?&gt;
</code></pre>

<p>The result on the browser is this:</p>

<p><strong>PingResponse Object ( [PingResult] => 1 )</strong> </p>

<p>The function pingSample is not mine, it's from Docusign.</p>

<p>I want to just extract the "1", or if it's a bad result I'm sure it will return "0".
I'm not experienced with Object Oriented coding, yet.  So, I'm assuming this is a simple example, in an API setting.  But I'm not sure.</p>

<p>For those who want to laugh at my attempt:</p>

<pre><code>$blah = pingSample();
echo $blah['PingResult'];
</code></pre>

<p>So far, nothing returns on the browser.  Apache logs return this: 
<strong>PHP Fatal error:  Cannot use object of type PingResponse as array</strong></p>

<p>How do I extract only the value of PingResult?</p>
