htmlentites,htmlspecialchars: document version third argument was added

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65516 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
jim winstead 2001-12-17 22:29:42 +00:00
parent 8e79177568
commit 509dcaccdd

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.142 $ -->
<!-- $Revision: 1.143 $ -->
<reference id="ref.strings">
<title>String functions</title>
<titleabbrev>Strings</titleabbrev>
@ -754,11 +754,6 @@ $original = strtr($str, $trans);
</informalexample>
The content of <literal>$original</literal> would be: "Hallo &amp;
&lt;Frau> &amp; Kr&auml;mer".
<note>
<para>
This function was added in PHP 4.0.
</para>
</note>
</para>
<para>
See also: <function>htmlspecialchars</function>,
@ -914,12 +909,13 @@ $original = strtr($str, $trans);
</para>
<para>
At present, the ISO-8859-1 character set is used as default.
Note that the optional second argument was added in PHP 3.0.17
and PHP 4.0.3.
Support for the optional second argument was added in PHP 3.0.17 and PHP
4.0.3.
</para>
<para>
Like <function>htmlspecialchars</function>, it takes an optional
third argument which defines character set used in conversion.
Support for this argument was added in PHP 4.1.0.
</para>
<para>
See also <function>htmlspecialchars</function> and
@ -1012,12 +1008,13 @@ $new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
<para>
Note that this function does not translate anything beyond what
is listed above. For full entity translation, see
<function>htmlentities</function>. Also note that the optional
<function>htmlentities</function>. Support for the optional
second argument was added in PHP 3.0.17 and PHP 4.0.3.
</para>
<para>
The third argument defines character set used in conversion. The
default character set is ISO-8859-1.
default character set is ISO-8859-1. Support for this third argument was
added in PHP 4.1.0.
</para>
<para>
See also <function>htmlentities</function> and