YouTip LogoYouTip

Func Mysqli Get Charset

## PHP Quiz ( ## PHP mysqli_get_charset() Function PHP mysqli_get_charset() Definition and Usage The get_charset() function returns a character set object. Grammar: ```php mysqli_get_charset(connection); ``` | Parameter | Description | |-----------|-------------| | connection | Required. Specifies the MySQL connection to use. | Technical Details | Return Value: | Returns a character set object on success, or FALSE on failure. | | PHP Version: | 5.0+ | | Changelog: | This function was introduced in PHP 5.0. | ## Example Return the character set of the database connection: ```php charset; mysqli_close($con); ?> ``` **Result:** Character set is: utf8 ## Related Tutorials ( ( ( ( ( ( ( ( ( ( ( (
← Func Mysqli Get Client InfoFunc Mysqli Free Result β†’