略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: cubrid_list_dbs

2024-12-22

cubrid_list_dbs

(PECL CUBRID >= 8.3.0)

cubrid_list_dbsReturn an array with the list of all existing CUBRID databases

说明

cubrid_list_dbs(resource $conn_identifier = ?): array

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.

范例

示例 #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"
}
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.cubrid-list-dbs.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3