回答編集履歴

1

ついき

2020/05/07 12:13

投稿

yambejp
yambejp

スコア115010

test CHANGED
@@ -1 +1,17 @@
1
1
  jsonデータとして必要な部分を再帰的に取得すればいいでしょう
2
+
3
+
4
+
5
+ # 追記
6
+
7
+ ```PHP
8
+
9
+ $str='{ "results" : ・・・ }';
10
+
11
+ $json=json_decode($str,JSON_OBJECT_AS_ARRAY);
12
+
13
+ $location=$json["results"][0]["geometry"]["location"];
14
+
15
+ print_r($location);
16
+
17
+ ```