update : 2015.11.03
php.shukuma.com

검색:
 
 
Return an array with the list of all existing CUBRID databases

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturn 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.

예제

Example #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"
}