使用:https://github.com/1360/mtgox-api-v1-php-class/blob/master/mtGox.class.php
+
echo '<pre>' . print_r($gox->getTicker(),true) . '</pre>';我得到了mtgox-api的所有报价器信息。
->如何才能只读出一个值,例如最后购买的价格:
[buy][value_int]= 11350000
?thx
发布于 2013-04-25 05:13:37
假设$gox->getTicker()返回一个数组,您可以像这样引用数组的元素:
$response = $gox->getTicker();
echo $response['buy']['value_int'];https://stackoverflow.com/questions/16201900
复制相似问题