PHP mysqli_get_charset() Function
Example
Return a character set object with properties:
Definition and Usage
The mysqli_get_charset() function returns a character set object.
Syntax
mysqli_get_charset(
connection
)
;
| Parameters | Description |
|---|---|
| connection | Required. Specifies the MySQL connection to use. |
Technical Details
| Return value: | Returns a character set object with the following properties:
- charset - Character set name
- collation - Collation name
- dir - The directory character set retrieved, or ""
- min_length - Minimum character length in bytes
- max_length - Maximum character length in bytes
- number - Internal character set number
- state - Character set status
PHP MySQLi Reference Manual