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 apd 函数 return all current regular resources as an arrayphp cubrid mysql 兼容性函数 return the current cubrid connection charsetphp cubrid 函数 open a connection to a cubrid serverphp cubrid 函数 get oid of the current cursor locationphp cubrid mysql 兼容性函数 return an array with the lengths of the values of each field from the current rowphp cubrid mysql 兼容性函数 fetch the next row and return it as an objectphp 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 函数 return the current cubrid connection charsetphp cubrid 函数 return the cubrid server versionphp cubrid 函数 return the id generated for the last updated auto increment columnphp cubrid 函数 open a persistent connection to cubrid serverphp cubrid 函数 open a persistent connection to a cubrid serverphp cubrid mysql 兼容性函数 ping a server connection or reconnect if there is no connectionphp cubrid 函数 set autocommit mode of the 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 posix 函数 return the current process group identifierphp mysqlnduhconnection escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp swoole connection iterator return current connection entry.
关注编程学问公众号