note 100376 deleted from mysqli.get-charset by danbrown
| From: | danbrown@php.net | Date: | Tue, 12 Oct 2010 16:10:42 +0000 |
| Subject: | note 100376 deleted from mysqli.get-charset by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173164@lists.php.net to get a copy of this message | ||
Note Submitter: func0der
----
<?php
$db = mysqli_init();
mysqli_real_connect($db, "localhost","root","","test");
var_dump($db->get_charset());
?>
This is NOT! Procedural style.
This is:
<?php
$db = mysqli_init();
mysqli_real_connect($db, "localhost","root","","test");
var_dump(mysqli_get_charset($db));
?>
Just for those who are confused about the example ;P