From 3f485b72cce32ad51cbdb15c05623ba3187e5e65 Mon Sep 17 00:00:00 2001 From: Victor Boivie Date: Sat, 1 Mar 2003 09:19:59 +0000 Subject: [PATCH] Corrected return type and cleaned up function description git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@118537 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/get-html-translation-table.xml | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/reference/strings/functions/get-html-translation-table.xml b/reference/strings/functions/get-html-translation-table.xml index b76a84a3bd..65307f07e0 100644 --- a/reference/strings/functions/get-html-translation-table.xml +++ b/reference/strings/functions/get-html-translation-table.xml @@ -1,5 +1,5 @@ - + @@ -13,7 +13,7 @@ Description - stringget_html_translation_table + arrayget_html_translation_table inttable intquote_style @@ -21,15 +21,20 @@ get_html_translation_table will return the translation table that is used internally for htmlspecialchars and - htmlentities. There are two new defines - (HTML_ENTITIES, - HTML_SPECIALCHARS) that allow you to - specify the table you want. And as in the + htmlentities. + + + There are two new constants + (HTML_ENTITIES, + HTML_SPECIALCHARS) that allow you to + specify the table you want. And as in the htmlspecialchars and htmlentities functions you can optionally - specify the quote_style you are working with. The default is - ENT_COMPAT mode. See the description of these modes in + specify the quote_style you are working with. The default is + ENT_COMPAT mode. See the description of these modes in htmlspecialchars. + + Translation Table Example @@ -45,8 +50,8 @@ $encoded = strtr($str, $trans); Krämer". - The cool thing is using array_flip to change - the direction of the translation. + Another interesting use of this function is to, with help of array_flip, + change the direction of the translation.