From 7d02afd834f58bfd058133405d393541acc3213d Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Thu, 4 Oct 2001 13:00:00 +0000 Subject: [PATCH] fixed some jade errors (deleted some old links.) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@58916 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/functions/strings.xml b/functions/strings.xml index 96026b86ca..010b4c941a 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -838,6 +838,9 @@ $original = strtr($str, $trans); int quote_style + string + charset + @@ -854,8 +857,13 @@ $original = strtr($str, $trans); both double and single quotes unconverted. - At present, the ISO-8859-1 character set is used. Note that the - optional second argument was added in PHP 3.0.17 and PHP 4.0.3. + 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. + + + Like htmlspecialchars, it takes an optional + third argument which defines character set used in conversion. See also htmlspecialchars and @@ -880,6 +888,9 @@ $original = strtr($str, $trans); int quote_style + string + charset + @@ -946,6 +957,10 @@ $new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES); htmlentities. Also note that the optional second argument was added in PHP 3.0.17 and PHP 4.0.3. + + The third argument defines character set used in conversion. The + default character set is ISO-8859-1. + See also htmlentities and nl2br.