我試圖讓這個變量$data
舉行的令牌 - 這是我通過PHP - 解碼JSON
$data = json_decode($result, true);
JSON:
{
"response": {
"status": "OK",
"token": "goog:11229:116ewfd1c0f5c:goog",
"dbg_info": {
"instance": "53.google.com",
"slave_hit": false,
"db": "master",
"parent_dbg_info": {
"instance": "23.google.com",
"slave_hit": false,
"db": "master",
"parent_dbg_info": {
"instance": "44.google.com",
"slave_hit": false,
"db": "master",
"time": 212.100215784,
"version": "1.19",
"warnings": [],
"slave_lag": 0,
"start_microtime": 123620305.0342
}
我已經解碼的JSON和它在$召開數據
我試圖讓
echo $data[response]->[token];
和
echo $data[response][token];
顯示解碼json的代碼 –
顯示將json解碼爲$ data的代碼行。它很重要。 – YvesLeBorg
$ data = json_decode($ result,true); –