[doc-en] master: Fix from_encoding description of mb_convert_variables() (#5959)
| From: | qodelicious via GitHub | Date: | Mon, 19 Oct 2026 09:24:20 +0000 |
| Subject: | [doc-en] master: Fix from_encoding description of mb_convert_variables() (#5959) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23860@lists.php.net to get a copy of this message | ||
Author: qodelicious (qodelicious)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-10-19T11:24:16+02:00
Commit: https://github.com/php/doc-en/commit/2bc5ed7ad57629c4fbd299f352c38e57099cfedd
Raw diff: https://github.com/php/doc-en/commit/2bc5ed7ad57629c4fbd299f352c38e57099cfedd.diff
Fix from_encoding description of mb_convert_variables() (#5959)
* Fix from_encoding description of mb_convert_variables()
Replace the non-existent from-coding reference with from_encoding, and
drop the note about omitting the parameter, since it is required.
Fixes #1308
* Use simpara for from_encoding description
* Apply review suggestion
Changed paths:
M reference/mbstring/functions/mb-convert-variables.xml
Diff:
diff --git a/reference/mbstring/functions/mb-convert-variables.xml
b/reference/mbstring/functions/mb-convert-variables.xml
index dfc3d42fed7f..babf83fd3c9e 100644
--- a/reference/mbstring/functions/mb-convert-variables.xml
+++ b/reference/mbstring/functions/mb-convert-variables.xml
@@ -44,12 +44,13 @@
<varlistentry>
<term><parameter>from_encoding</parameter></term>
<listitem>
- <para>
- <parameter>from_encoding</parameter> is specified as an
<type>array</type>
- or comma separated <type>string</type>, it tries to detect encoding from
- <parameter>from-coding</parameter>. When
<parameter>from_encoding</parameter>
- is omitted, <literal>detect_order</literal> is used.
- </para>
+ <simpara>
+ The current encoding of the variables. Multiple encodings may be
+ specified as an <type>array</type> or comma separated
<type>string</type>,
+ in which case the encoding is detected among the listed encodings.
+ <literal>"auto"</literal> is expanded according to the
+ <link linkend="ini.mbstring.language">mbstring.language</link> INI
setting.
+ </simpara>
</listitem>
</varlistentry>
<varlistentry>