I insert several(array) value with json_encode in one row from database table, now want echo they as order with jquery.
This is output from my PHP code:
[{
"guide": null,
"residence": [{
"name_r": "jack"
}, {
"name_r": "jim"
}, {
"name_r": "sara"
}],
"residence_u": [{
"units": ["hello", "how", "what"],
"extra": ["11", "22", "33"],
"price": ["1,111,111", "2,222,222", "3,333,333"]
}, {
"units": ["fine"],
"extra": ["44"],
"price": ["4,444,444"]
}, {
"units": ["thanks", "good"],
"extra": ["55", "66"],
"price": ["5,555,555", "6,666,666"]
}]
}]
I want as(output):
jack
hello&11&1,111,111
how&22&2,222,222
what&33&3,333,333,
jim
fine&44&4,444,444
sara
thanks&55&5,555,555
good&66&6,666,666
How is it?