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("/ |