数组:1
Array
(
[0] => Array
(
[date] => 2022-12-09
[verify] => 0
[unverify] => 0
)
[1] => Array
(
[date] => 2022-12-08
[verify] => 0
[unverify] => 0
)
[2] => Array
(
[date] => 2022-12-07
[verify] => 0
[unverify] => 0
)
[3] => Array
(
[date] => 2022-12-06
[verify] => 0
[unverify] => 0
)
[4] => Array
(
[date] => 2022-12-05
[verify] => 0
[unverify] => 0
)
[5] => Array
(
[date] => 2022-12-04
[verify] => 0
[unverify] => 0
)
[6] => Array
(
[date] => 2022-12-03
[verify] => 0
[unverify] => 0
)
)
阵列:2
Array
(
[0] => Array
(
[date] => 2022-12-09
[verify] => 10
[unverify] => 6
)
[1] => Array
(
[date] => 2022-12-08
[verify] => 2
[unverify] => 5
)
)
我终于想要这种数组了。
实验结果:
Array
(
[0] => Array
(
[date] => 2022-12-09
[verify] => 10
[unverify] => 6
)
[1] => Array
(
[date] => 2022-12-08
[verify] => 2
[unverify] => 5
)
[2] => Array
(
[date] => 2022-12-07
[verify] => 0
[unverify] => 0
)
[3] => Array
(
[date] => 2022-12-06
[verify] => 0
[unverify] => 0
)
[4] => Array
(
[date] => 2022-12-05
[verify] => 0
[unverify] => 0
)
[5] => Array
(
[date] => 2022-12-04
[verify] => 0
[unverify] => 0
)
[6] => Array
(
[date] => 2022-12-03
[verify] => 0
[unverify] => 0
)
)
请帮帮我。
这是两个数组,我想比较(或任何东西)两个数组,所以我得到我想要的结果。在数组2中的所有记录都被替换为数组1中的日期(索引),所以我得到结果
1条答案
按热度按时间9fkzdhlc1#