|
mysqli::get_charsetmysqli_get_charsetReturns a character set object DescriptionObject-oriented style
public objectnull mysqli::get_charset()
Procedural style objectnull mysqli_get_charset(mysqli
$mysql)Returns a character set object providing several properties of the current active character set. Parameters
Return ValuesThe function returns a character set object with the following properties:
ExamplesExample #1 mysqli::get_charset example Object-oriented style Procedural style The above examples will output:
object(stdClass)#2 (7) {
["charset"]=>
string(6) "latin1"
["collation"]=>
string(17) "latin1_swedish_ci"
["dir"]=>
string(0) ""
["min_length"]=>
int(1)
["max_length"]=>
int(1)
["number"]=>
int(8)
["state"]=>
int(801)
}
See Also
|