title: How to set array of array in one single array
body: <p>I want to make single array from array of array. i have tried by following code but there is not output display that i want.</p>
  
  <p>following is my array.</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; stdClass Object
                  (
                      [id] =&gt; 78
                      [user_id] =&gt; 11
                      [product_id] =&gt; 98
                      [qty] =&gt; 3
                      [size] =&gt; 10
                  )
  
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; stdClass Object
                  (
                      [id] =&gt; 79
                      [user_id] =&gt; 11
                      [product_id] =&gt; 99
                      [qty] =&gt; 3
                      [size] =&gt; 10
                  )
  
          )
  
  )
  </code></pre>
  
  <p>And I want following type</p>
  
  <pre><code>Array
  (
  
          [0] =&gt; stdClass Object
              (
                  [id] =&gt; 78
                  [user_id] =&gt; 11
                  [product_id] =&gt; 98
                  [qty] =&gt; 3
                  [size] =&gt; 10
              )
  
  
          [1] =&gt; stdClass Object
              (
                  [id] =&gt; 79
                  [user_id] =&gt; 11
                  [product_id] =&gt; 99
                  [qty] =&gt; 3
                  [size] =&gt; 10
              )
  
  
  )
  </code></pre>
  
  <p>My code is following but it's not work</p>
  
  <pre><code>$getResult = $wpdb-&gt;get_results("SELECT * FROM mytable");
  foreach ($getResult as $key =&gt; $value) {
      $value-&gt;id;
  }
  </code></pre>
  
  <p>Anyone know how to do this ? Please help me how to do this </p>