Home  >  Article  >  php教程  >  请各位帮我写一个 php str

请各位帮我写一个 php str

WBOY
WBOYOriginal
2016-06-06 19:42:151016browse

现有字符串: $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--就是全部删除掉  "[]"中所以字符串

Statement:
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