function tables() { $aTables = []; $sSql = "SHOW TABLES FROM `" . $this->sDbName . "`"; $oStmt = $this->query($sSql); while (($aRs = $oStmt->fetch()) !== false) { $aTables[] = array_shift($aRs); } asort($aTables); reset($aTables); return $aTables; }