Easiest way to do this array merge
<p>I have 2 db queries that return values from the db, what's the easiest way to do this. Is there a PHP function that can do this or do I have to use a loop ? </p>

<pre><code>$names = array(
        'det-1' =&gt; array('foo'),
        'det-2' =&gt; array('bar'),
        'det-3' =&gt; array('doe')
    );      

    $emails = array(
        'det-1' =&gt; array('foo@gmail.com'),
        'det-2' =&gt; array('bar@gmail.com'),
        'det-3' =&gt; array('doe@gmail.com')
    );
</code></pre>

<p>// the result </p>

<pre><code>    $details = array(
        'det-1' =&gt; array('foo', 'foo@gmail.com')
        'det-2' =&gt; array('bar', 'bar@gmail.com')
        'det-3' =&gt; array('doe', 'doe@gmail.com')
    );
</code></pre>
