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
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
You can just write the code like this:
$arr = array_unique($arr)
Hope this helps.