I have this array in a string.
"['hello@test.com','holla@mail']"
I want to remove the double quotes surrounding the array.
I tried the following:
$data = "['hello@test.com','holla@mail']";
dd(json_decode($data, true));
But I am getting null
.
My expected result is this:
['hello@test.com','holla@mail']
But I am getting null.