|
get_html_translation_tableReturns the translation table used by htmlspecialchars and htmlentities Description
array get_html_translation_table(int
$table = HTML_SPECIALCHARS , int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, string $encoding = "UTF-8")get_html_translation_table will return the translation table that is used internally for htmlspecialchars and htmlentities.
Parameters
Return ValuesReturns the translation table as an array, with the original characters as keys and entities as values. Changelog
Examples
Example #1 Translation Table Example
The above example will output something similar to: array(1510) { [" "]=> string(9) "
" ["!"]=> string(6) "!" ["""]=> string(6) """ ["#"]=> string(5) "#" ["$"]=> string(8) "$" ["%"]=> string(8) "%" ["&"]=> string(5) "&" ["'"]=> string(6) "'" // ... } See Also
|