我在下面使用$a=file_get_contents
获得了JSON响应,我需要回显[id]的值,在本例中为2316713。当我使用echo $a["id"]
时,我得到了这个输出:
" R" 。
有什么建议?
Response:
---------
Array
(
[id] => 2316713
[key] => xxxxxx
[status] => initialising
[sandbox] => 1
[created_at] => 2018-02-26T23:38:52Z
[finished_at] =>
[source_file] => Array
(
[id] => 29757828
[name] => test1.pptx
[size] => 134718
)
[target_files] => Array
(
)
[target_format] => png
[credit_cost] => 1
)