foreach ($data1 as $k => $v){
$flag=true;
foreach ($data as $dk=>$dv){
if($v['fangId']==$dv['fangId']){
$time=$dv['dealTime']-$v['addTime'];
if($time<=$changetime*24*3600){
$flag=false;
}
}
}
if($flag){
$res[]=$v['fangId'];
}
}
$data1和data两组数据,做time对比打标记
本文转自 liang3391 51CTO博客,原文链接:http://blog.51cto.com/liang3391/1893071