PHP » GoLang |
login |
register |
about
|
GoLang get_html_translation_table
request it (486)
GoLang replacement for PHP's get_html_translation_table
[edit | history]
PHP get_html_translation_tablePHP original manual for get_html_translation_table [ show | php.net ]get_html_translation_table(PHP 4, PHP 5, PHP 7) get_html_translation_table — Returns the translation table used by htmlspecialchars() and htmlentities() Description
array get_html_translation_table
([ int
$table = HTML_SPECIALCHARS
[, int $flags = ENT_COMPAT | 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
<?php 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
|
more
Recently updated
more
Most requested
more
Last requests
|