title: php: push multiple arrays in one array
body: <p>What I am trying to do is to push somme arrays into one array:
  The static form of my array is as following:</p>
  
  <pre><code>$Data = array
    (
      array('uid' =&gt; 1, 'Field Name' =&gt; 'xxxx', 'Field Values' =&gt; 'xxxx'),
      array('uid' =&gt; 2, 'Field Name' =&gt; 'xxxx', 'Field Values' =&gt; 'xxxx'),
      array('uid' =&gt; 3, 'Field Name' =&gt; 'xxxx', 'Field Values' =&gt; 'xxxx'),
    );
  </code></pre>
  
  <p>I want to obtain the same Data array I tried the next, but it didnt work:</p>
  
  <pre><code>   $Data = array();
     // $Columns is an array that contains the Field Names
    for ($i=0; $i &lt; sizeof($Columns); $i++) {
      $newelement=array('uid' =&gt;$i, 'Field Name' =&gt; $Columns[$i], 'Field Values' =&gt; 'xxxx');
      $Data = array_push($Data,$newelement);
       }
  </code></pre>
  
  <p>Is there a better way than using array_push();  ??</p>