Document the new charset_hint parameter

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306187 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2010-12-10 14:06:54 +00:00
parent f6895f959c
commit 959ade2dae

View file

@ -12,6 +12,7 @@
<type>array</type><methodname>get_html_translation_table</methodname>
<methodparam choice="opt"><type>int</type><parameter>table</parameter><initializer>HTML_SPECIALCHARS</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>quote_style</parameter><initializer>ENT_COMPAT</initializer></methodparam>
<methodparam choice="opt"><type>string</type><parameter>charset_hint</parameter></methodparam>
</methodsynopsis>
<para>
<function>get_html_translation_table</function> will return the
@ -56,6 +57,18 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>charset_hint</parameter></term>
<listitem>
<para>
Like <function>htmlentities</function>, it takes an optional
third argument <parameter>charset</parameter> which defines character
set used in conversion.
Presently, the ISO-8859-1 character set is used as the default.
</para>
&reference.strings.charsets;
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
@ -67,6 +80,30 @@
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>5.3.4</entry>
<entry>
The <parameter>charset_hint</parameter> parameter was added.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>