cubrid_list_dbs

Return an array with the list of all existing CUBRID databases

説明

array cubrid_list_dbs(resource $conn_identifier = ?)

This 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"
}