ingres_charset

(PECL ingres >= 2.1.0)

ingres_charsetReturns the installation character set

说明

ingres_charset ( resource $link ) : string

ingres_charset() is called to determine the character set being used by the Ingres client, from II_CHARSETxx (where xx is the installation code).

Note:

You can override the value returned by using the function putenv(). Changing the value of II_CHARSETxx in a running Ingres installation can cause data corruption.

参数

link

The connection link identifier

返回值

Returns a string with the value for II_CHARSETxx or returns NULL if the value could not be determined.

范例

Example #1 ingres_charset() - Get the installation character set

<?php
$link 
ingres_connect($database$user$password);

echo 
ingres_charset($link) . "\n";

ingres_close($link);
?>

参见

相关文章
php ibm db2 函数 returns a result set listing the columns and associated metadata for a tablephp ibm db2 函数 returns the position of the named column in a result setphp ibm db2 函数 returns the precision of the indicated column in a result setphp ibm db2 函数 returns the scale of the indicated column in a result setphp ibm db2 函数 returns the data type of the indicated column in a result setphp ibm db2 函数 returns the width of the current value of the indicated column in a result setphp ibm db2 函数 returns a result set listing the foreign keys for a tablephp ibm db2 函数 returns a result set listing primary keys for a tablephp ibm db2 函数 returns a result set listing stored procedure parametersphp ibm db2 函数 returns a result set listing the stored procedures registered in a databasephp ibm db2 函数 returns a single column from a row in the result setphp ingres 函数 returns the installation character setphp maxdb 函数 returns the default character set for the database connectionphp maxdb 函数 returns the next field in the result setphp maxdb 函数 returns an array of resources representing the fields in a result setphp maxdb 函数 returns the lengths of the columns of the current row in the result setphp maxdb 函数 returns result set metadata from a prepared statementphp 多字节字符串 函数 set/get character encoding for multibyte regexphp 别名和过时的 mysqli 函数 mysqli character set name 的别名php sqlite 函数 returns the number of fields in a result set
关注编程学问公众号