小编use*_*588的帖子

如何使用PHP获取JSON格式

{  
   "apple":[  
      "get",
      "get me an apple"
   ],
   "orange":[  
      "get me one",
      "get some"
   ],
   "banana ":[  
      "cut them all",
      "get them"
   ],

}
Run Code Online (Sandbox Code Playgroud)

我怎样才能获得格式?我使用print_r($ sql)打印短语和动作列时的SQL输出; 是 Array ( [phrases] => get [actions] => apple ) Array ( [phrases] => get me an apple [actions] => apple ) Array ( [phrases] => Get me one [actions] => orange ) Array ( [phrases] => Get some [actions] => orange ) Array ( [phrases] => cut them all [actions] => Banana ) …

php json

1
推荐指数
1
解决办法
85
查看次数

标签 统计

json ×1

php ×1