Q:

PHP Remove dupllicate array value which is a date

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

A:

You can just write the code like this:
$arr = array_unique($arr)

Hope this helps.