Mysql_fetch_all
Join the DZone community and get the full member experience.
Join For FreeAbsurdly simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
function mysql_fetch_all($result) {
$all = array();
while ($all[] = mysql_fetch_assoc($result)) {}
return $all;
}
Opinions expressed by DZone contributors are their own.
Comments