Ok, what i wanna do is replace the codes in html with ascii equivalents: $text= ereg_replace('&#([0-9]+);' , chr('\1') , $text); But somehow it doesnt work, i have no idea why.
When i use $text= ereg_replace('&#([0-9]+);' , '\1' , $text); it replaces everything correctly But $text= ereg_replace('&#([0-9]+);' , chr('\1') , $text); just replaces everything with an empty string using php 3.0.12 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php