/** * @param $table */ function ExistTable($table) { $a = $this->Query($this->sql->ExistTable($table)); if (!is_array($a)) { return false; } $b = current($a); if (!is_array($b)) { return false; } $c = (int) current($b); if ($c > 0) { return true; } else { return false; } }