get html translation table: decode : get_html_translation_table « HTML « PHP






get html translation table: decode

 
<?php
   $entities = get_html_translation_table(HTML_ENTITIES);
   $translate = array_flip($entities);
   $string = "&eacute; &uacute;";
   echo strtr($string, $translate); 
?>
  
  








Related examples in the same category

1.get_html_translation_table() translates text to its HTML equivalent.
2.get_html_translation_table: encode