我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

刚获得第一个json属性?

I'm trying to get the json property's from an url. But just the first property arrives.

        $json = file_get_contents('http://steamcommunity.com/market/priceoverview/?currency=3&appid=730&market_hash_name=' . $item_name);
        $obj = json_decode($json, true);
        $result = count($obj);
        echo $json;

Output is:

"{"success":true}"

instead of:

"{"success":true,"lowest_price":"0,96\u20ac","volume":"143","median_price":"0,89\u20ac"}"

What am i doing wrong?

近期文章

  • PHP Email Injection Prevention
  • Ajax和func_get_args()
  • Php日期时间未知格式 - 仅限日期
  • Symfony2 Doctrine查询实体错误
  • 无法让LinkedIn库工作
  • 使用preg_match用PHP提取内容
  • 同步RewriteBase和HTML基本标记
  • 将带有表单的值发送到其他文档PHP HTML
  • PHP - 正则表达式在方括号内找到字符串[重复]
  • 从Mysql导出数据并输出到CSV允许另存为
  • 检查子节点是否存在并获取xml中的父节点
  • ERROR 403 - FORBIDDEN Laravel中的server.php文件
  • 使用php获取下一个第15天和/或第30天的日期?
  • PayPal IPN模拟器始终在PHP中提供INVALID响应
  • 对于flot js中的图形,x轴的时间没有正确显示
  • 自定义标签网址的Wordpress htaccess rewriterule
  • 创建/调用函数,所以我不必多次插入相同的代码?
  • 如何加载CI控制器功能而不刷新视图?
  • PHP JSON Web服务
  • 扩展标签功能

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华