mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Fix doc of mysqli_get_charset (#5411)
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>dir</parameter></term>
|
||||
<listitem><para>Directory the charset description was fetched from (?) or "" for built-in character sets</para></listitem>
|
||||
<listitem><para>Directory the character set description was fetched from or "" for built-in character sets</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>min_length</parameter></term>
|
||||
@@ -67,7 +67,7 @@
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>state</parameter></term>
|
||||
<listitem><para>Character set status (?)</para></listitem>
|
||||
<listitem><para>As of PHP 8.2.0, it is always <literal>1</literal></para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
@@ -83,6 +83,7 @@
|
||||
<?php
|
||||
$db = mysqli_init();
|
||||
$db->real_connect("localhost","root","","test");
|
||||
$db->set_charset('latin1');
|
||||
var_dump($db->get_charset());
|
||||
?>
|
||||
]]>
|
||||
@@ -93,6 +94,7 @@
|
||||
<?php
|
||||
$db = mysqli_init();
|
||||
mysqli_real_connect($db, "localhost","root","","test");
|
||||
mysqli_set_charset($db, 'latin1');
|
||||
var_dump(mysqli_get_charset($db));
|
||||
?>
|
||||
]]>
|
||||
@@ -114,7 +116,7 @@ object(stdClass)#2 (7) {
|
||||
["number"]=>
|
||||
int(8)
|
||||
["state"]=>
|
||||
int(801)
|
||||
int(1)
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
|
||||
Reference in New Issue
Block a user