title: How to access the members of this data in PHP?
body: <p>Okay. Now I give up. I have been playing with this for hours.</p>
  
  <ul>
  <li>I have a variable name <code>$data</code>.</li>
  <li><p>The variable contains these contents: (extracted by using <code>var_export()</code>)</p>
  
  <pre><code>array (
    'headers' =&gt;
    array (
      'content-type' =&gt; 'multipart/alternative; boundary="_689e1a7d-7a0a-442a-bd6c-a1fb1dc2993e_"',
    ),
    'ctype_parameters' =&gt; 
    array (
      'boundary' =&gt; '_689e1a7d-7a0a-442a-bd6c-a1fb1dc2993e_',
    ),
    'parts' =&gt; 
    array (
      0 =&gt; 
      stdClass::__set_state(array(
        'headers' =&gt; 
        array (
          'content-type' =&gt; 'text/plain; charset="iso-8859-1"',
          'content-transfer-encoding' =&gt; 'quoted-printable',
        ),
        'ctype_primary' =&gt; 'text',
      )),
    ),
  )
  </code></pre>
  
  <p><em>I removed some non-essential data.</em></p></li>
  <li>I want to access the headers value (on the second line above) - simple: <code>$data-&gt;headers</code></li>
  <li>I want to access the headers value (on the fourteenth line after the <code>stdClass::</code> stuff) - how?</li>
  </ul>
  
  <p>How can I possibly access the values within the <code>stdClass::__set_state</code> section?</p>
  
  <p>I tried <code>var_export($data-&gt;parts);</code> but all I get is</p>
  
  <blockquote>
    <p>NULL</p>
  </blockquote>