get html translation table: decode : get_html_translation_table « HTML « PHP
- PHP
- HTML
- get_html_translation_table
get html translation table: decode
<?php
$entities = get_html_translation_table(HTML_ENTITIES);
$translate = array_flip($entities);
$string = "é ú";
echo strtr($string, $translate);
?>
Related examples in the same category