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 an array indexed by column position representing a row in a result setphp ibm db2 函数 returns an array indexed by column name representing a row in a result setphp ibm db2 函数 returns an array indexed by both column name and position representing a row in a result setphp ibm db2 函数 returns a result set listing the foreign keys for a tablephp ibm db2 函数 returns a result set listing the unique row identifier columns for a tablephp ibm db2 函数 returns a result set listing the index and statistics for a tablephp ingres 函数 returns the installation character setphp ingres 函数 set the row position before fetching dataphp ingres 函数 set environment features controlling output optionsphp maxdb 函数 returns the default character set for the database connectionphp 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 the current row of a result set as an objectphp maxdb 函数 returns result set metadata from a prepared statementphp 别名和过时的 mysqli 函数 mysqli character set name 的别名php ncurses 函数 returns current line kill characterphp ncurses 函数 set new position and draw a horizontal line using an attributed character and max. n characters longphp ncurses 函数 set new position and draw a vertical line using an attributed character and max. n characters longphp sqlite 函数 returns the number of fields in a result setphp sqlite 函数 returns the number of rows in a buffered result set
关注编程学问公众号