note 100376 added to mysqli.get-charset
| From: | func0der at osu1 dot php dot net | Date: | Tue, 12 Oct 2010 12:44:12 +0000 |
| Subject: | note 100376 added to mysqli.get-charset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173155@lists.php.net to get a copy of this message | ||
<?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
----
Server IP: 85.214.154.209
Probable Submitter: 213.39.239.95
----
Manual Page -- http://www.php.net/manual/en/mysqli.get-charset.php
Edit -- https://master.php.net/note/edit/100376
Del: integrated -- https://master.php.net/note/delete/100376/integrated
Del: useless -- https://master.php.net/note/delete/100376/useless
Del: bad code -- https://master.php.net/note/delete/100376/bad+code
Del: spam -- https://master.php.net/note/delete/100376/spam
Del: non-english -- https://master.php.net/note/delete/100376/non-english
Del: in docs -- https://master.php.net/note/delete/100376/in+docs
Del: other reasons-- https://master.php.net/note/delete/100376
Reject -- https://master.php.net/note/reject/100376
Search -- https://master.php.net/manage/user-notes.php