string '
'
提取 src里的/Uploads/Editor/gh_4df8efbb2caf/2015-08-13/55cc2fbec248a.png这个值
谢谢
回复讨论(解决方案)
preg_match('/ echo $match[1];
、、、、、、、、、、、、、
1
/Uploads/Editor/gh_4df8efbb2caf/2015-08-13/55cc2fbec248a.png
$str = '
';
$pat = '/src="([^"]+)"/i';
preg_match_all($pat, $str, $m);
print_r($m[1][0]);
一个字符串中多个img
string '
' (length=221)
=================
preg_match('/
$goods_info = $match[0]; // match[0] 为全部
//echo $goods_info;
html中输出
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