PHP mysqli_character_set_name() Function

Object oriented style

string mysqli::character_set_name ( void )

Procedural style

string mysqli_character_set_name ( mysqli $link )

The mysqli_character_set_name() function returns the default character set for the database connection.Returns the current character set for the database connection.

Examples -

Object oriented style

Procedural style

ParameterDescription
linkProcedural style only: A link identifier returned by mysqli_connect() or mysqli_init()

Return Values

The default character set for the current connection