Returning DB results to an Array issue
<p>I am trying to push a DB results to an array.</p>

<p>My goal is to make an array looks like the following</p>

<pre><code>array('test1'=&gt;2, 'test2'=&gt;3);
</code></pre>

<p>I have a statement as following:</p>

<pre><code>$results=DB::call($statement, $parameter);
</code></pre>

<p>and I need to use <code>foreach</code> loop</p>

<pre><code>foreach ($ids as $id){

  $results[]=DB::call($statement, $id);

}
</code></pre>

<p>without a <code>foreach</code> loop, my result array will be</p>

<pre><code>array('test1'=&gt;2, 'test2'=&gt;3)
</code></pre>

<p>but with <code>foreach</code> loop, my array will become 2 dimension</p>

<pre><code>//loop twice in my case

array(
     array(
      'test1'=&gt;2,  
       test2'=&gt;3,        
     ),
     array(
       'test3'=&gt;4    
       'test4'=&gt;5    
     )    
)
</code></pre>

<p>Are there anyways to concatenate my results to create 1 dimension array only? Thanks for the help!</p>
