cubrid_get_charset

(PECL CUBRID >= 8.3.0)

cubrid_get_charsetReturn the current CUBRID connection charset

说明

cubrid_get_charset ( resource $conn_identifier ) : string

This function returns the current CUBRID connection charset and is similar to the CUBRID MySQL compatible function cubrid_client_encoding().

参数

conn_identifier

The CUBRID connection.

返回值

A string that represents the CUBRID connection charset; on success.

FALSE on failure.

范例

Example #1 cubrid_get_charset() example

<?php

$con 
cubrid_connect("localhost"33000"demodb");
if (!
$con)
{
    die(
'Could not connect.');
}

printf("CUBRID current charset: %s\n"cubrid_get_charset($con));

?>

以上例程会输出:

CUBRID current charset: iso8859-1

参见

相关文章
php cubrid mysql 兼容性函数 return the number of rows affected by the last sql statementphp cubrid mysql 兼容性函数 return the current cubrid connection charsetphp cubrid 函数 close a database connectionphp cubrid mysql 兼容性函数 return the numerical value of the error message from previous cubrid operationphp cubrid mysql 兼容性函数 return an array with the lengths of the values of each field from the current rowphp cubrid mysql 兼容性函数 return a numerical array with the values of the current rowphp cubrid mysql 兼容性函数 return the name of the specified field indexphp cubrid mysql 兼容性函数 return the name of the table of the specified fieldphp cubrid mysql 兼容性函数 return the type of the column corresponding to the given field offsetphp cubrid 函数 return the current cubrid connection charsetphp cubrid mysql 兼容性函数 return an array with the list of all existing cubrid databasesphp cubrid mysql 兼容性函数 return the value of a specific field in a specific rowphp maxdb 函数 escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp maxdb 函数 returns the thread id for the current connectionphp odbc 函数 returns information about a current connectionphp posix 函数 return the real user id of the current processphp win32service 函数 define or return the exit code for the current running servicephp win32service 函数 define or return the exit mode for the current running servicephp swoole connection iterator return current connection entry.php swoole connection iterator return key of the current connection.
关注编程学问公众号