有两个数组:
===========
A:
array
(
[0] => Array
(
[Vtime] => 2014-01-18 00:22:43
[qr] => 0a5500f5d5e5847209d83a7fe637a34f
)
[1] => Array
(
[Vtime] => 2014-01-17 00:00:00
[qr] => 218e412b1d73f771e8b01b9d1f678f5b
)
)
===========
B:
array
(
[0] => Array
(
[Date] => 2014-01-18 00:22:43
[Md5] => 0a5500f5d5e5847209d83a7fe637a34f
)
[1] => Array
(
[Date] => 2014-01-18 00:22:43
[Md5] => 218e412b1d73f771e8b01b9d1f678f5b
)
[2] => Array
(
[Date] => 2014-01-17 00:00:00
[Md5] => 218e412b1d73f771e8b01b9d1f678f5b
)
[3] => Array
(
[Date] => 2014-01-17 00:00:00
[Md5] => 218e412b1d73f771e8b01b9d1f678f5b
)
[4] => Array
(
[Date] => 2014-01-17 00:00:00
[Md5] => 218e412b1d73f771e8b01b9d1f678f5b
)
)
比较A数组Vtime和B数组中的Date是否相同,如果相同将数据合并(vtime, qr, Date, Md5)放到C数组,
如果不相同,则单独把A数组放到C数组。
(A数组要和B数组的每一个都对比,B数组只有和A数组对应的才会保留到C数组)
求高手帮我想个办法。
认证高级PHP讲师