$string = "adsf"; $translate = get_html_translation_table(HTML_ENTITIES); $translate = array_flip($translate); print_r($translate) ;?>