相当于函数html_entity_decode的: function unhtmlentities($string) { $array = get_html_translation_table(HTML_ENTITIES); $array = array_flip($array); return strstr($string, $array);}