분류
php
get html translation table: decode
본문
<?php
$entities = get_html_translation_table(HTML_ENTITIES);
$translate = array_flip($entities);
$string = "é ú";
echo strtr($string, $translate);
?>
- 이전글get_html_translation_table: encode 15.06.10
- 다음글php을 공부할 때 phptester.net을 이용하세요. 15.05.31