Posts by Cristiano Souza • 1 point
2 posts
-
-1
votes1
answer29
viewsA: PHP: Compare repeated items from a list and discard the one from the highest date
Solution shown by: Israel Lemes, Comunicplus $dados = [array("id" =>12, "data"=>"2020-07-02"), array("id" =>13, "data"=>"2020-06-10"), array("id" =>13, "data"=>"2020-06-15"),…
-
-2
votes1
answer29
viewsQ: PHP: Compare repeated items from a list and discard the one from the highest date
Good evening, I need some help with the code below: Inside the variable '$data' I have an array where the id repeats with different dates, I need to discard one of the two arrays repeated with the…