Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一种方法来显示来自远程 json 数组的特定内容。我尝试了一些你会用 MySQL 数组做的事情,但这似乎不起作用。我当前的代码是这样的(没有 curl 设置和东西):
$epf = json_decode(curl_exec($down)); $type = $epf['type']; echo $type;
谁能给我一个简单的解决方案,说明如何从特定标题(例如“成本”)获取内容?
我宁愿用print_r($epf);
print_r($epf);