How to merge two arrays of objects
<p>A:</p>

<pre><code>Array ( 
    [0] =&gt; gapiReportEntry Object (
        [metrics:private] =&gt; Array ( 
            [visits] =&gt; 1036 
            [pageviews] =&gt; 2046 
            [bounces] =&gt; 693 
            [entrances] =&gt; 1036 
        ) 
        [dimensions:private] =&gt; Array ( 
            [date] =&gt; 20110114 
        ) 
    ) 
)
</code></pre>

<p>B:</p>

<pre><code>Array ( 
    [0] =&gt; gapiReportEntry Object ( 
        [metrics:private] =&gt; Array ( 
            [goal1Completions] =&gt; 1 
        ) 
        [dimensions:private] =&gt; Array ( 
            [date] =&gt; 20110114 
        ) 
    ) 
)
</code></pre>

<p>C:</p>

<pre><code>Array ( 
    [0] =&gt; gapiReportEntry Object ( 
        [metrics:private] =&gt; Array ( 
            [visits] =&gt; 1036 
            [pageviews] =&gt; 2046 
            [bounces] =&gt; 693 
            [entrances] =&gt; 1036 
            [goal1Completions] =&gt; 1
        ) 
        [dimensions:private] =&gt; Array ( 
            [date] =&gt; 20110114 
        ) 
    ) 
)
</code></pre>

<p>I want to merge(A,B) and get C.</p>
