分享一个php 中文乱码bug
程序员文章站
2022-04-15 22:39:15
...
preg_replace('/([\x{53bf}|\x{533a}|\x{9547}]){1}$/iu', '', $my_city_name);
preg_replace('/([\x{53bf}|\x{533a}|\x{9547}]){1}$/iu', '', $my_city_name);