<?php
$str = stripcslashes($navinfor[newstext]);
preg_match_all( '/<img.*?src="(.*?)".*?>/is', $str, $imgArr );
$imgArr = array_unique( $imgArr[1] );
?>
<?=count($imgArr)?>张
<img src="<?=$imgArr[0]?>">
<img src="<?=$imgArr[1]?>">
<img src="<?=$imgArr[2]?>">
当前目录:帝国CMS教程
帝国cms正则获取文章中的图片
帝国CMS教程 2025-04-03 15:48:40