Cubrid Functions
PHP Manual

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturns an array with the list of all existing Cubrid databases

Description

array cubrid_list_dbs ( resource $conn_identifier )

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

Parameters

conn_identifier

The CUBRID connection. If the connection identifier is not specified, the last link opened by cubrid_connect() is assumed.

Return Values

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

FALSE on failure.

Examples

Example #1 cubrid_list_dbs() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    echo 
"CUBRID databases:<br>";
    
print_r(cubrid_list_dbs($link));
?>

The above example will output:

Result:
CUBRID databases:
Array ( [0] => demodb2 [1] => cubrid3 )

Cubrid Functions
PHP Manual