2 /* Prototype : array get_html_translation_table ( [int $table [, int $quote_style [, string charset_hint]]] )
3 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
4 * Source code: ext/standard/html.c
7 /* Test get_html_translation_table() when table is specified as HTML_ENTITIES */
10 echo "*** Testing get_html_translation_table() : basic functionality ***\n";
12 echo "-- with table = HTML_ENTITIES --\n";
13 $table = HTML_ENTITIES
;
14 $tt = get_html_translation_table($table, ENT_COMPAT
, "UTF-8");
18 echo "-- with table = HTML_SPECIALCHARS --\n";
19 $table = HTML_SPECIALCHARS
;
20 $tt = get_html_translation_table($table, ENT_COMPAT
, "UTF-8");