只是让你们知道我尝试了Stackoverflow上的许多示例,但运气并不好,尽管这看起来像是重复的,但事实并非如此。
我需要从具有相同日期的数组中删除重复的链接。日期不同的重复链接不应删除。请看一下数组。如果有人可以帮助我,我将不胜感激。
[0] => Array(
[link] => Array
(
[S] => /link1.php
)
[date] => Array
(
[S] => 06/15/2019
)
)
[1] => Array(
[link] => Array
(
[S] => /link1.php
)
[date] => Array
(
[S] => 06/14/2019
)
)
[2] => Array(
[link] => Array
(
[S] => /link1.php
)
[date] => Array
(
[S] => 06/15/2019
)
)
[3] => Array(
[link] => Array
(
[S] => /link2.php
)
[date] => Array
(
[S] => 06/15/2019
)
)