title: How to access stdClass Multi level object or array?
body: <p>I had to make a particularly complex SOAP request in PHP and seem to have received back objects within objects. I need to get a particular value for example "session_token". I can var_dump the request and even turn it in to an array but I can't access individual elements. Please help!</p>
  
  <p>Objects:</p>
  
  <pre><code>stdClass Object ( [login_response] =&gt; stdClass Object 
      ( [response_context] =&gt; stdClass Object 
          ( [session_token] =&gt; b1043dcb82625701188ffff03572 
              [response_status] =&gt; OK [response_message] =&gt; Login successful 
                  )))) 
  </code></pre>
  
  <p>Converted array:</p>
  
  <pre><code>Array ( [0] =&gt; 
      Array ( [response_context] =&gt; 
          Array ( [session_token] =&gt; b1043dcb82625701188ffff03572 
              [response_status] =&gt; OK [response_message] =&gt; Login successful
               ) ) ) 
  </code></pre>