= 8.3.0)cubrid_list_dbs — Return an array with the list of all existing CUBRID databases說(shuō)明cubrid_list_dbs(resource $conn_">

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturn an array with the list of all existing CUBRID databases

說(shuō)明

cubrid_list_dbs(resource $conn_identifier = ?): array

This function returns an array with the list of all existing Cubrid databases.

參數(shù)

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);
?>

以上例程會(huì)輸出:

array(1) {
  [0]=>
  string(6) "demodb"
}