PHP提取字符串中的图片地址[正则表达式]_PHP
程序员文章站
2022-06-08 18:33:57
...
正则表达式
复制代码 代码如下:
$str='';
$pattern="//";
preg_match_all($pattern,$str,$match);
print_r($match);
?>
结果显示:
Array
(
[0] => Array
(
[0] =>
)
[1] => Array
(
[0] => upfiles/2009/07/1246430143_1.jpg
)
)
$str='';
$pattern="//";
preg_match_all($pattern,$str,$match);
print_r($match);
?>
结果显示:
Array
(
[0] => Array
(
[0] =>
)
[1] => Array
(
[0] => upfiles/2009/07/1246430143_1.jpg
)
)