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.
$resultset=array();
while($row=mysql_fetch_assoc($result))
{
$resultset[]=$row;
}
print_r($resultset);
How to read all values in an array returned by a PHP file using AJAX?