Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_character_set_name() Function

PHP mysqli_character_set_name() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

Return the default character set of the database connection:


Definition and Usage

The mysqli_character_set_name() function returns the default character set of the database connection.


Syntax

mysqli_character_set_name(

connection

)

;

Parameters Description
connection Required. Specifies the MySQL connection to use.

Technical Details

Return Value: The default character set of the specified connection.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual