源来页 公告 登陆

一段代码让你文章中的图片首页显示

composer @Ta
2019-12-25 12:34

<?
$arr1='一个人的圣诞节,没有苹果,没有礼物。唯一的就是搞钱。
<img src="https://zl88.net/img/zx8.gif"/>
<img src="https://zl88.net/upload/2019-12-25_11-03-10.png"/>
';
preg_match_all(
                    '/\<img src="(.*?)"\/\>/',$arr1,$matches,PREG_PATTERN_ORDER);
                    foreach ($matches[1] as $va){
                        
                        echo  "<img src=\"".$va."\" style=\"max-width:180px;max-height:200px;margin:2px 2px;\"/>";
                    }

实例:https://zl88.net/zl/p.php/topic.441.index.html

最后编辑:2019-12-25 13:03
阅:1513 发表于2019-12-25 12:34
#php源码
评论:
南墙 @Ta
2019-12-25 20:37

@kiss5523,怎么了

kiss5523 @Ta
2019-12-25 18:50

wa


返回源来页/返回首页


天合之作 曲在人意

心灵鸡汤:
      

®2019-2024 all power by Zlproject3.7
川公网安备 51192202000151号
蜀ICP备2021014921号-2 首页 #top

本网站由提供CDN加速/云储存服务

天合之作 曲在人意