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 mysql 兼容性函数 return the associative array that corresponds to the fetched rowphp cubrid mysql 兼容性函数 get column information from a result and return as an objectphp 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 函数 return the current cubrid connection charsetphp cubrid 函数 return the client library versionphp cubrid 函数 return the cubrid server versionphp cubrid 函数 return the number of columns in the result setphp cubrid mysql 兼容性函数 return the number of columns in the result setphp cubrid 函数 open a persistent connection to cubrid serverphp db++ 函数 remove tuple and return new current tuplephp 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 group set of the current processphp posix 函数 return the current process group identifierphp runkit 函数 determines if the current functions return value will be usedphp mysqlnduhconnection escapes special characters in a string for use in an sql statement taking into account the current charset of the connection
关注编程学问公众号