加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php将html转成wml的WAP标记语言实例

发布时间:2020-12-12 20:59:32 所属栏目:PHP教程 来源:网络整理
导读:本篇章节讲解php将html转成wml的WAP标记语言的方法。供大家参考研究。具体实现方法如下: ]*)>/isU",$content,$imgarr); if(isset($imgarr[0]) count($imgarr[0])>0 ) { foreach($imgarr[0] as $k=>$v) $content = str_replace($v,"WAP-IMG::{$k}",$

本篇章节讲解php将html转成wml的WAP标记语言的方法。分享给大家供大家参考。具体实现方法如下:

]*)>/isU",$content,$imgarr); if(isset($imgarr[0]) && count($imgarr[0])>0 ) { foreach($imgarr[0] as $k=>$v) $content = str_replace($v,"WAP-IMG::{$k}",$content); } // 过滤掉样式表和脚本 $content = preg_replace("/