PHP - Manual: cubrid_list_dbs
2024-12-22
(PECL CUBRID >= 8.3.0)
cubrid_list_dbs — Return an array with the list of all existing CUBRID databases
$conn_identifier
= ?): arrayThis function returns an array with the list of all existing Cubrid databases.
conn_identifier
The CUBRID connection.
An numeric array with all existing Cubrid databases; on success.
false
on failure.
示例 #1 cubrid_list_dbs() example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
$db_list = cubrid_list_dbs($conn);
var_dump($db_list);
cubrid_disconnect($conn);
?>
以上例程会输出:
array(1) { [0]=> string(6) "demodb" }
官方地址:https://www.php.net/manual/en/function.cubrid-list-dbs.php