/** * Convert the query log into an HTML table. * * @return string */ public static function getQueryLog() { $html = '<table border="1"><col span="3"><col align="char"><thead><tr><th>#</th><th>Query</th><th>Rows</th><th>Time (ms)</th></tr></thead><tbody>' . implode('', self::$log) . '</tbody></table>'; self::$log = array(); return $html; }