求助 循环不知道原因结束
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
$ss = array();
foreach($data[0] as $key => $val ){
preg_match('/<A href="([^"]*)"/isU',$val,$href);
preg_match('/<a href="([^"]*)"/isU',$val,$href);
preg_match('/<IMG src="([^"]*)"/isU',$val,$src);
preg_match('/class="a8"><script src="https://www.php.cn/hezuo/f220a8ffcae8732bbc8e3d8f7f36834b.js"></script>(.*)<\/a>/isU',$val,$title);
preg_match('/<strong>(.*)<\/strong>/isU',$val,$tuanPrice);
preg_match('/<LI>原价:(.*)元<\/LI>/isU',$val,$yuanPrice);
preg_match('/class="L_F_2">(.*)折<\/span>/isU',$val,$zheShu);
preg_match('/class="a7">(.*)<\/a>/isU',$val,$webName);
preg_match('/\'(.*)\'/isU',$val,$time);
$src_a = 'http://www.nduotuan.com'.$src[1];
$ss[] = array($title[1],$href[1],$src_a,$tuanPrice[1],$yuanPrice[1],$zheShu[1],$time[1],$webName[1]);
//echo "<pre class="brush:php;toolbar:false;">";print_r($ss);
$html='';
}
echo "<pre class="brush:php;toolbar:false;">";print_r($ss);
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号