回答編集履歴
1
ついき
answer
CHANGED
@@ -1,1 +1,9 @@
|
|
1
|
-
jsonデータとして必要な部分を再帰的に取得すればいいでしょう
|
1
|
+
jsonデータとして必要な部分を再帰的に取得すればいいでしょう
|
2
|
+
|
3
|
+
# 追記
|
4
|
+
```PHP
|
5
|
+
$str='{ "results" : ・・・ }';
|
6
|
+
$json=json_decode($str,JSON_OBJECT_AS_ARRAY);
|
7
|
+
$location=$json["results"][0]["geometry"]["location"];
|
8
|
+
print_r($location);
|
9
|
+
```
|