(PECL CUBRID >= 8.3.0)
cubrid_list_dbs — Returns an array with the list of all existing Cubrid databases
This function returns an array with the list of all existing Cubrid databases.
The CUBRID connection.
An numeric array with all existing Cubrid databases; on success.
FALSE on failure.
Example #1 cubrid_list_dbs() example
<?php
$link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
if (!$link)
{
die('Could not connect.');
}
echo "CUBRID databases:<br>";
print_r(cubrid_list_dbs($link));
?>
以上例程会输出:
Result: CUBRID databases: Array ( [0] => demodb2 [1] => cubrid3 )