title: How to read all values in an array returned by a PHP file using AJAX?
body: <p>I am using AJAX to fetch a multidimensional array, so a multidimensional array is returned to AJAX, how can I deal with the data with AJAX? I need to read all values in the multidimensional array. I use the following code to return the array to AJAX.</p>
  
  <pre><code>$resultset=array();
  while($row=mysql_fetch_assoc($result))
  {
      $resultset[]=$row;
  }
  print_r($resultset);
  </code></pre>
  
  <p>How to read all values in an array returned by a PHP file using AJAX?</p>