4
回答
php两数组怎么比较合并
开发十年,就只剩下这套Java开发体系了   

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