CUBRID MySQL Compatibility Functions
PHP Manual

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturn an array with the list of all existing CUBRID databases

Descrizione

array cubrid_list_dbs ([ resource $conn_identifier ] )

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

Elenco dei parametri

conn_identifier

The CUBRID connection.

Valori restituiti

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

FALSE on failure.

Esempi

Example #1 cubrid_list_dbs() example

<?php
$conn 
cubrid_connect("localhost"33088"demodb");

$db_list cubrid_list_dbs($conn);
var_dump($db_list);

cubrid_disconnect($conn);
?>

Il precedente esempio visualizzerĂ :

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

CUBRID MySQL Compatibility Functions
PHP Manual