how can combine different index into one index
<p>I am trying to combine different index into one index.Given code is sample..</p>

<pre><code>Array(
[0] =&gt; stdClass Object
    (
        [player_id] =&gt; 92
        [player_name] =&gt; XYZ
    )

[1] =&gt; stdClass Object
    (
        [player_type_id] =&gt; 4
        [type] =&gt; All-Rounder
    ))
</code></pre>

<p>expected answer would be</p>

<pre><code>Array([0] =&gt; stdClass Object
     ( 
      [player_id] =&gt; 92
      [player_name] =&gt; XYZ
      [player_type_id] =&gt; 4
      [type] =&gt; All-Rounder
     )
</code></pre>