php正则提取图片解决思路
php 正则 提取图片
$str = $arr['message'] = '
';
echo $str;
preg_match_all("/\/ismUe", $arr['message'], $image2, PREG_SET_ORDER);
$temp = $aids = $existentimg = array();
print_r($image2);
上面是我写的代码,获取出来的图片路径是:
/uploads/allimg/230913/000524A54-0.jpg"/>
不知道怎么修正正则,求高手帮忙
------解决方案--------------------
preg_match_all("/\
/is", $arr['message'], $image2, PREG_SET_ORDER);
/phprm/51986.htmlwww.phpzy.comtrue/phprm/51986.htmlTechArticlephp正则提取图片解决思路 php 正则 提取图片 $str = $arr['message'] = ' '; echo $str; preg_match_all("/\ /ismUe", $arr['message'], $image2, PREG_SET_ORDER); $temp = $aids = $existentimg = array(); print_r($image2); 上面是我写...
PHP之友评论