Funcții CUBRID de compatibilitate MySQL
PHP Manual

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturn an array with the list of all existing CUBRID databases

Descrierea

array cubrid_list_dbs ([ resource $conn_identifier ] )

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

Parametri

conn_identifier

The CUBRID connection.

Valorile întoarse

An numeric array with all existing Cubrid databases; on success.

FALSE on failure.

Exemple

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

Exemplul de mai sus va afișa:

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

Funcții CUBRID de compatibilitate MySQL
PHP Manual