/** * Perform MySQL fetch and execute $callback on it returning the result * @param mysqli_result $res * @param function $callback * @param DB\Fetch:: $format * @return Array <int, mixed> */ function fetchCallback($res, $callback, $format = DBAL\Fetch::ALL_ASSOC) { return $res->FetchCallback($callback, $format); }