I have 1 table contains json
data like below.
{"14":"17","17":"29","18":"74","19":["80"],"20"["82","83","84"],"21":["85","86","87"],"23":""}
I want to convert this data to variable in my php page.
As you can see, every key can be a variable,
$id_14 = 17
$id_17 = 29
$id_18 = 74
$id_19 = 80
$id_20 = 82, 83, 84
$id_21 = 85, 86, 87
$id_23 = null or empty
I am using the json_decode
method but I cannot convert it exactly.
Thanks in advance.