cubrid_client_encoding

(PECL CUBRID >= 8.3.1)

cubrid_client_encodingReturn the current CUBRID connection charset

说明

cubrid_client_encoding ([ resource $conn_identifier ] ) : string

This function returns the current CUBRID connection charset and is similar to the CUBRID function cubrid_get_charset().

参数

conn_identifier

The CUBRID connection. If the connection identifier is not specified, the last link opened by cubrid_connect() is assumed.

返回值

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

FALSE on failure.

范例

Example #1 cubrid_client_encoding() example

<?php

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

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

?>

以上例程会输出:

CUBRID current charset: iso8859-1

参见

相关文章
php cubrid cubrid mysql 兼容性函数php cubrid mysql 兼容性函数 return the number of rows affected by the last sql statementphp cubrid mysql 兼容性函数 return the current cubrid connection charsetphp cubrid mysql 兼容性函数 close cubrid connectionphp cubrid mysql 兼容性函数 return the numerical value of the error message from previous cubrid operationphp cubrid mysql 兼容性函数 fetch a result row as an associative array a numeric array or bothphp 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 mysql 兼容性函数 return a string with the flags of the given field offsetphp 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 number of columns in the result setphp cubrid mysql 兼容性函数 ping a server connection or reconnect if there is no connectionphp cubrid mysql 兼容性函数 return the value of a specific field in a specific row
关注编程学问公众号