输入banner图图片脚本导航/分类

PHP数据格式问题

我想把data里的数据格式变成list的 怎么办?

回复内容:

我想把data里的数据格式变成list的 怎么办?

data中储存的是json格式的字符串 你用json_decode($data,true)就可以得到数组格式了

json_decode(data)

json_encode(json_decode(list,true))

json_decode 应该是data 的数据多了次 json_encode 导致的