/** * showTables * * @param mixed $io Description. * * @access public * * @return mixed Value. */ public function showTables($io = true) { $bdd = self::dbConnect(); $sql = 'SHOW TABLES'; $response = $bdd->prepare($sql); $response->execute(); while ($row = $response->fetch()) { $tables[] = $row[0]; } if ($io) { echo 'There is ' . Extras::pluralize("table", count($tables)) . ' into the ' . self::DATABASE . ' database:<br />' . implode('<br />', $tables) . '<br />'; } return implode(', ', $tables); }