4
回答
php两数组怎么比较合并
华为云实践训练营,热门技术免费实践!>>>   

$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回/281阅
顶部