|
mysqli::get_charsetmysqli_get_charsetReturns a character set object DescriptionObject oriented style
object mysqli::get_charset
( void
)
Procedural style
object mysqli_get_charset
( mysqli
$link
)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
<?phpProcedural style
<?phpThe 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
|