prss.net
当前位置:首页 >> PHP prEg_rEplACE用法..菜鸟求救.. >>

PHP prEg_rEplACE用法..菜鸟求救..

首先.需要定自己定义一个数组,来设置一一对应关系; $array = array( 'bz7' => '7.gif', ........ 'bz27' => '27.gif', 'bz28' => '28.gif' ); $text = preg_replace("/\[bz([0-9]+)\]/is",''); 如果图片有路径./images/,则 $text = preg_replace...

网站首页 | 网站地图
All rights reserved Powered by www.prss.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com