title: php - push array into array - key issue
body: <p>i am trying to push multiple arrays into 1 big array, resulting in a 2 lvl array.</p>
  
  <p>I got this set of arrays for example:</p>
  
  <pre>
  Array
  (
      [cod] => ddd
      [denum] => ffffffffffffffff
      [descr] => ggggggg
      [cant] => 3
  )
  Array
  (
      [cod] => fff
      [denum] => dfgdfgdfgdfgdfg
      [descr] => dfgdfgdfgdfgdfg
      [cant] => 33
  )
  </pre>
  
  <p>But, after array push, i get this array:</p>
  
  <pre>
  Array
  (
      [0] => Array
          (
              [0] => ddd
              [1] => ffffffffffffffff
              [2] => ggggggg
              [3] => 3
          )
  
      [1] => Array
          (
              [0] => fff
              [1] => dfgdfgdfgdfgdfg
              [2] => dfgdfgdfgdfgdfg
              [3] => 33
          )
  
  )
  </pre>
  
  <p>Basically this is what i want to do, BUT, if you notice after the push, the keys are forgotten, and converted to numeric.</p>
  
  <p>This is what i want it to look like:</p>
  
  <pre>
  Array
  (
      [0] => Array
          (
              [cod] => ddd
              [denum] => ffffffffffffffff
              [descr] => ggggggg
              [cant] => 3
          )
  
      [1] => Array
          (
              [cod] => fff
              [denum] => dfgdfgdfgdfgdfg
              [descr] => dfgdfgdfgdfgdfg
              [cant] => 33
          )
  
  )
  </pre>
  
  <p>sample code im using:</p>
  
  <pre><code>$res_arr_values = array();
  while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
     {
         array_push($res_arr_values, array_values($row));
     }
  </code></pre>
  
  <p>Can someone help me with it ?</p>