时间:2021-07-01 10:21:17 帮助过:2人阅读
array("json","ajax","php+mysql");
$s = <<< TXT ..... json ..... ajax .... php / mysql TXT; preg_match_all("/------解决方案--------------------
$s=<< json ..... ajax ajax .... php / mysql html; $s= str_replace('/','',$s); preg_match_all('/]*>(.*)<\/span>/isU',$s,$m); foreach($m[1] as $v){ $v=preg_replace('/<[^>]+>/','',$v,-1,$count); if($count>2) $arr[]=join('+',preg_split("/[\r\n]+/",$v,-1,PREG_SPLIT_NO_EMPTY)); else $arr[]=trim($v); } print_r($arr);