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 函数 get oid of the current cursor locationphp 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 a string with the flags of the given field offsetphp cubrid mysql 兼容性函数 return the name of the specified field indexphp cubrid 函数 return the current cubrid connection charsetphp cubrid 函数 return the id generated for the last updated auto increment columnphp cubrid mysql 兼容性函数 return an array with the list of all existing cubrid databasesphp cubrid 函数 open a persistent connection to a cubrid serverphp cubrid mysql 兼容性函数 ping a server connection or reconnect if there is no connectionphp judy 函数 return or print the current php judy versionphp maxdb 函数 escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp odbc 函数 returns information about a current connectionphp posix 函数 return the real user id of the current processphp swoole connection iterator return current connection entry.php swoole connection iterator return key of the current connection.
关注编程学问公众号