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.