0

I have an array,

`Array
(
[0] => 2019-08-02
[1] => 2019-08-02
[2] => 2019-08-03
)`

I need to remove duplicates from this array.I tried converting strtotime and compared But not getting result.

Please help

Regards, Rekha

Rekha
  • 403
  • 2
  • 14
  • 26

1 Answers1

1

You can just write the code like this:

$arr = array_unique($arr)

Hope this helps.

Martin Dimitrov
  • 1,319
  • 1
  • 13
  • 24