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