CUBRID 函数
PHP Manual

cubrid_get_server_info

(PECL CUBRID >= 8.3.0)

cubrid_get_server_infoReturns a string that represents the CUBRID server version

说明

string cubrid_get_server_info ( resource $conn_identifier )

This function returns a string that represents the CUBRID server version.

参数

conn_identifier

The CUBRID connection.

返回值

A string that represents the CUBRID server version; on success.

FALSE on failure.

范例

Example #1 cubrid_get_server_info() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }

    
printf("CUBRID server info: %s\n"cubrid_get_server_info($link));
?>

以上例程会输出:

Result:
CUBRID server info: 8.2.1.0209

CUBRID 函数
PHP Manual