분류 php

get html translation table: decode

컨텐츠 정보

  • 조회 1,737 (작성일 )

본문

<?php

   $entities = get_html_translation_table(HTML_ENTITIES);

   $translate = array_flip($entities);

   $string = "&eacute; &uacute;";

   echo strtr($string, $translate); 

?> 

php