如何使用PHP读取JSON数组? [英] How to read JSON array using PHP?
本文介绍了如何使用PHP读取JSON数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找使用PHP读取JSON数组的方法。我正在使用php file_get_contents
读取JSON数组。
I'm looking to read JSON array using PHP. I'm using php file_get_contents
to read the JSON array.
所以,这是我的数组的样子,
So, here is how my array look like,
有人可以告诉我如何读取所有数组吗?
Can anyone tell me how can I read all the array?
推荐答案
使用 json_encode($ array)
返回数组JSON对象。
return your array with json_encode($array)
it will return a JSON Object.
这篇关于如何使用PHP读取JSON数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文