CLASS_MYSQLI::show_databases PHP Метод

show_databases() публичный Метод

public show_databases ( )
    function show_databases()
    {
        $sql = "SHOW DATABASES";
        $this->db_rs = $this->query($sql);
        if (!$this->db_rs) {
            return false;
        }
        $obj = array();
        while ($obj_temp = $this->fetch_assoc($this->db_rs)) {
            $obj[] = $obj_temp;
            unset($obj_temp);
        }
        return $obj;
    }