php正则匹配或者str_replace怎么对英文的 度 这个符号进行替换

WBOY
Release: 2016-06-13 12:50:29
Original
835 people have browsed it

php正则匹配或者str_replace如何对英文的 度 这个符号进行替换?
想把英文 度 这个特殊符号转为"",一直没调好怎么写,有人知道吗?求助啊,谢谢!


------解决方案--------------------
$str="dfdfsdsf°°°°zgy°°°° 90°";<br />
echo str_replace('°', '', $str)."<br>";<br />
echo preg_replace('/(°)+/', '', $str);
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!