Extract multidimensional associative array in PHP
<p>I have an array in the following format:  </p>

<pre><code>Array
(
    [accountID] =&gt; Array
        (
            [0] =&gt; 412216
            [1] =&gt; 396408
            [2] =&gt; 522540
        )

    [mailBody] =&gt; Array
        (
            [0] =&gt; 'We are glad to have contact you'
            [1] =&gt; 'Thank you for your cooperation'
            [2] =&gt; 'One of our customer service representatives will contact you soon'
        )

    [mailAttachments] =&gt; Array
        (
            [0] =&gt; 'URL1'
            [1] =&gt; 'URL1'
            [2] =&gt; 'URL1'
        )

)
</code></pre>

<p>This array pulls some information from a mailing box. I would like to extract each accountID with equivalent mailBody and mailAttachments as well.
Your response is highly appreciated.</p>
