4
回答
php两数组怎么比较合并
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   

$arr=array(

array("count"=>10,"date"=>"2014-04-16"),

array("count"=>50,"date"=>"2014-04-18"),

array("count"=>80,"date"=>"2014-04-20")

);

$date =array("2014-04-16","2014-04-17","2014-04-18","2014-04-19","2014-04-20");

对应$date所有日期转换为

$arr=array(
array("count"=>10,"date"=>"2014-04-16"),

array("count"=>0,"date"=>"2014-04-17"),

array("count"=>50,"date"=>"2014-04-18"),

array("count"=>0,"date"=>"2014-04-19"),

array("count"=>80,"date"=>"2014-04-20"),

)




PHP
举报
newnoder
发帖于4年前 4回/291阅
顶部