查找HTML中类似" <!-- -->内容 <!--End of Insertion -->" $str='11111111111111 <!-- -->想要的内容 <!--End of Insertion -->2222222222222222';$p='/>(.*)</';preg_match($p,$str,$m);echo $m[1];//$m[1] 是想要的内容 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $str='11111111111111 <!-- -->想要的内容 <!--End of Insertion -->2222222222222222';$p='/>(.*)</';preg_match($p,$str,$m);echo $m[1];//$m[1] 是想要的内容 $str='11111111111111 <!-- -->想要的内容 <!--End of Insertion -->2222222222222222'; $result=strstr(substr($str,0,strrpos($str,">")+1),'<');echo $result; php连接db2出错,劳驾兄弟们帮忙看下!!!!!!!!!!!!!!!!!!!!!!!!!! PHP中数据库备份文件名问题,请高手指教,不胜感激 求指教 请教教我吧 在线等。。。。 smarty中使用配置文件的问题! 高分求解答网站多语言问题 如何用换行来做循环? ■■关于无限级分类的问题,菜单我已经用递归解决,但产品列表页面不知如何做了.... 这些乱吗如何解决? 求助 我上传的文件怎么看到???求助,谢谢! 关于Cannot add header information - headers already sent...”。 帮忙看看,这样写有错么?
$str='11111111111111 <!-- -->想要的内容 <!--End of Insertion -->2222222222222222';
$p='/>(.*)</';
preg_match($p,$str,$m);
echo $m[1];//$m[1] 是想要的内容
$str='11111111111111 <!-- -->想要的内容 <!--End of Insertion -->2222222222222222';
$result=strstr(substr($str,0,strrpos($str,">")+1),'<');
echo $result;