Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 | 



cubrid_list_dbs

Description

The cubrid_list_dbs function returns the name of every database existing in the server in array.

Syntax

array cubrid_list_dbs (resource $conn_identifier)

  • conn_identifier : Connection identifier previously obtained from a call to cubrid_connect()
Return Value
  • Success : Numeric array of every CUBRID database
  • Failure : FALSE
Example

<?php

$conn = cubrid_connect("localhost", 33088, "demodb");

 

$db_list = cubrid_list_dbs($conn);

var_dump($db_list);

 

cubrid_disconnect($conn);

?>

The above example will output:

 

array(1) {

  [0]=>

  string(6) "demodb"

}

See Also