I have an array which is like:
array(2) { ["y"]=> string(1) "A" ["z"]=> string(3) "1,2" }
I want to print them as:
array(2) { ["y"]=> string(1) "A" ["z"]=> string(1) "107"},array(2) { ["y"]=> string(1) "A" ["z"]=> string(1) "2"}
Here is my code:
$a = explode(",",$row['z']);