首页 新闻 会员 周边

二维数组通过json_encode($data)转换后如何插入数据库?

0
[已关闭问题] 关闭于 2016-12-20 16:09

$data=array(
'id'=>2,
'title'=>'title',
'content'=>'content',
'other'=>array(
'time'=>'time',
'author'=>'author',
'doc'=>'doc',
'url'=>'url'
)

);

$json=addslashes(json_encode($data));​

{"id":2,"title":"title","content":"content","other":{"time":"time","author":"author","doc":"doc","url":"url"}}

多幸运的主页 多幸运 | 菜鸟二级 | 园豆:202
提问于:2016-12-20 15:51
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册