title: PHP dynamic multidimensional Array
body: <p>I have a problem with the implementation of a dynamic 2 dimensional array. This is the way I am doing this:</p>
  
  <pre><code>$array_ = array();
  $values = array();
  
  foreach ($queryresult as $row){
      array_push($value, $row['id'];
      array_push($value, $row['title'];
      array_push($array_, $value);
  }  
  var_dump(#array_);
  </code></pre>
  
  <p>The problem is that my query returns 3 rows, but my result is as follows:-</p>
  
  <pre><code>Array ([0] =&gt; Array ([0] =&gt; 44 [1] =&gt; Game of Thrones))
  </code></pre>
  
  <p>Anyone have any idea what I am doing wrong?</p>