I have no idea How to convert a single quote array into array;
FOR Example:-
I have
$Array = '["ID" => 9, "Value" => [40,15,20,25,30]]';
print_r($Array);
Then it is showing like string not an array
["ID" => 9, "Value" => [40,15,20,25,30]]
so how to convert this into array
like the result will show like this
Array
(
[ID] => 9
[Value] => Array
(
[0] => 40
[1] => 15
[2] => 20
[3] => 25
[4] => 30
)
)
May be you have why i am putting array in single quote but this is not i am putting.
I Getting an array from DB after group_concat
in mysql
This is the array
Array
(
[0] => Array
(
[GPN] => A
[PKGID] => PKG01
[Output] => ["ID" => 9, "Value" => [40,15,20,25,30]]
)
)
Here the Output is element coming like it's a string