Home > php教程 > php手册 > body text

请各位帮我写一个 php str

WBOY
Release: 2016-06-06 19:42:15
Original
990 people have browsed it

现有字符串: $str="[align=left][color=#ff00][font=微软雅黑, Tahoma, Helvetica, SimSun, sans-serif][size=5]2014九寨沟黄河第一湾,[/size][/font][/color][color=#ff00][font=微软雅黑, Tahoma, Helvetica, SimSun, sans-serif]两批结束回来要整理的东

现有字符串:

$str="[align=left][color=#ff00][font=微软雅黑, Tahoma, Helvetica, SimSun, sans-serif][size=5]2014九寨沟—黄河第一湾—,[/size][/font][/color][color=#ff00][font=微软雅黑, Tahoma, Helvetica, SimSun, sans-serif]两批结束回来要整理的东西太多了,第一批的照片要整理,修改,发给队员,[attach]1697[/attach]
 ";

 

想要最后结果:

$str="2014九寨沟—黄河第一湾—,两批结束回来要整理的东西太多了,第一批的照片要整理,修改,发给队员,";

如何编写呀?(PHP--就是全部删除掉  "[]"中所以字符串

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 Recommendations
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!