求助 循环不知道原因结束
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $ss = array(); foreach($data[0] as $key => $val ){ preg_match('/<a href="(%5B%5E" preg_match src="(%5B%5E">(.*)/isU',$val,$title); preg_match('/<strong>(.*)/isU',$val,$tuanPrice); preg_match('/<li>原价:(.*)元/isU',$val,$yuanPrice); preg_match('/class="L_F_2">(.*)折/isU',$val,$zheShu); preg_match('/class="a7">(.*)/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);