for($i=0;$i<5;$i++){
$content="http://www.xxx.com/product_info.php?products_id=$i";
preg_match_all('/http:\/\/www.xxx.com\/product_info.php\?products_id=\d+/',$content,$link_array[]);
}
var_dump(check_is_array($link_array));function check_is_array($arr){
if(is_array($arr)){
$value="";
foreach($arr as $arri)
$value.=check_is_array($arri);
return $value;
}else
return $arr;
}但这样做有啥意义?……