alternative for function preg_replace e/ modifier
问题 Anybody knows how to change this function with preg_replace and the e/ modifier The e/ modifier will be depreciated. function charset_decode_utf_8 ($string) { /* Only do the slow convert if there are 8-bit characters */ /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */ if (! preg_match("/[\200-\237]/", $string) and ! preg_match("/[\241-\377]/", $string)) return $string; // decode three byte unicode characters $string = preg_replace("/([\340-\357])([\200-\277])([\200-\277])