Oracle 5.0 Reference Manual page 2394

Table of Contents

Advertisement

number
state
Examples
Example 20.121.
Object oriented style
<?php
$db = mysqli_init();
$db->real_connect("localhost","root","","test");
var_dump($db->get_charset());
?>
Procedural style
<?php
$db = mysqli_init();
mysqli_real_connect($db, "localhost","root","","test");
var_dump($db->get_charset());
?>
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
mysqli_character_set_name
mysqli_set_charset
20.7.3.9.19. mysqli::get_client_info,
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqli::get_client_info
mysqli_get_client_info
Get MySQL client info
Description
MySQL Improved Extension (Mysqli)
Internal character set number
Character set status (?)
mysqli::get_charset
mysqli_get_client_info
example
2374

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents