title: how to push data into array in php
body: <p>Dear All,
  I want to push the data into array. i am using flowing code. There are two arrays. one holding keys and 2nd values. i am using flowing code</p>
  
  <pre><code>while($data=mysql_fetch_array($result))
  {   
       foreach ($arrTemp as $val) 
      {                   
          array_push($arrKeys, $val);
          array_push($arrValues, $data[$val]);                
      }               
  }
  
  print_r($arrKeys);
  print_r($arrValues);
  
  $arrReturn = array_combine($arrKeys,$arrValues);
  </code></pre>
  
  <p>...................................
  and get flowing results of two arrays.</p>
  
  <pre><code>Array ( [0] =&gt; due_date [1] =&gt; flag_code [2] =&gt; due_date [3] =&gt; flag_code [4] =&gt; due_date [6] =&gt; flag_code  )
  
  
  Array ( [0] =&gt; 12:04:2011 [1] =&gt; 0 [2] =&gt; 13:04:2011 [3] =&gt; 0 [4] =&gt; 14:04:2011 [6] =&gt; 0  )
  </code></pre>
  
  <p>when i try to combined the array using array_combined function it only return an array of two values like: <code>Array (due_date =&gt; 14:04:2011 flag =&gt; 0)</code></p>
  
  <p>how i can get all values in  single array.....!</p>