How can I create a PHP stdClass Object from the output of a PHP stdClass Object
<p>I have the following as a string:</p>

<pre><code>stdClass Object
(

    [createResult] =&gt; stdClass Object

       (
           [ReturnCode] =&gt; 1
       )

)
</code></pre>

<p>How can I take the above string and create a new stdClass Object? I'd like to get the value like this:</p>

<pre><code>$rc = $obj-&gt;createResults-&gt;ReturnCode;
</code></pre>
