質問編集履歴
1
配列のインデント、実施した結果を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,237 @@
|
|
10
10
|
|
11
11
|
```PHP
|
12
12
|
|
13
|
-
array(2)
|
13
|
+
array(2)
|
14
|
+
|
15
|
+
{
|
16
|
+
|
17
|
+
["statuses"]=> array(1)
|
18
|
+
|
19
|
+
{
|
20
|
+
|
21
|
+
[0]=> array(24)
|
22
|
+
|
23
|
+
{
|
24
|
+
|
25
|
+
["created_at"]=> string(30) "Sat Nov 17 00:29:37 +0000 2018"
|
26
|
+
|
27
|
+
["id"]=> int(1063589943115751424)
|
28
|
+
|
29
|
+
["id_str"]=> string(19) "1063589943115751424"
|
30
|
+
|
31
|
+
["text"]=> string(104) "#モンハン女子"
|
32
|
+
|
33
|
+
["truncated"]=> bool(false)
|
34
|
+
|
35
|
+
["entities"]=> array(4)
|
36
|
+
|
37
|
+
{
|
38
|
+
|
39
|
+
["hashtags"]=> array(1)
|
40
|
+
|
41
|
+
{
|
42
|
+
|
43
|
+
[0]=> array(2)
|
44
|
+
|
45
|
+
{
|
46
|
+
|
47
|
+
["text"]=> string(18) "モンハン女子"
|
48
|
+
|
49
|
+
["indices"]=> array(2)
|
50
|
+
|
51
|
+
{
|
52
|
+
|
53
|
+
[0]=> int(35)
|
54
|
+
|
55
|
+
[1]=> int(42)
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
["symbols"]=> array(0) { }
|
64
|
+
|
65
|
+
["user_mentions"]=> array(0) { }
|
66
|
+
|
67
|
+
["urls"]=> array(0) { }
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
["metadata"]=> array(2)
|
72
|
+
|
73
|
+
{
|
74
|
+
|
75
|
+
["iso_language_code"]=> string(2) "ja"
|
76
|
+
|
77
|
+
["result_type"]=> string(6) "recent"
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
["source"]=> string(66) "Twitter Web Client"
|
82
|
+
|
83
|
+
["in_reply_to_status_id"]=> NULL
|
84
|
+
|
85
|
+
["in_reply_to_status_id_str"]=> NULL
|
86
|
+
|
87
|
+
["in_reply_to_user_id"]=> NULL
|
88
|
+
|
89
|
+
["in_reply_to_user_id_str"]=> NULL
|
90
|
+
|
91
|
+
["in_reply_to_screen_name"]=> NULL
|
92
|
+
|
93
|
+
["user"]=> array(42)
|
94
|
+
|
95
|
+
{
|
96
|
+
|
97
|
+
["id"]=> int(1059756301494837248)
|
98
|
+
|
99
|
+
["id_str"]=> string(19) "1059756301494837248"
|
100
|
+
|
101
|
+
["name"]=> string(30) "やすぅ"
|
102
|
+
|
103
|
+
["screen_name"]=> string(10) "234908yasu"
|
104
|
+
|
105
|
+
["location"]=> string(0) ""
|
106
|
+
|
107
|
+
["description"]=> string(37) "????"
|
108
|
+
|
109
|
+
["url"]=> NULL
|
110
|
+
|
111
|
+
["entities"]=> array(1)
|
112
|
+
|
113
|
+
{
|
114
|
+
|
115
|
+
["description"]=> array(1)
|
116
|
+
|
117
|
+
{
|
118
|
+
|
119
|
+
["urls"]=> array(0) { }
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
["protected"]=> bool(false)
|
126
|
+
|
127
|
+
["followers_count"]=> int(4)
|
128
|
+
|
129
|
+
["friends_count"]=> int(1)
|
130
|
+
|
131
|
+
["listed_count"]=> int(0)
|
132
|
+
|
133
|
+
["created_at"]=> string(30) "Tue Nov 06 10:36:06 +0000 2018"
|
134
|
+
|
135
|
+
["favourites_count"]=> int(0)
|
136
|
+
|
137
|
+
["utc_offset"]=> NULL
|
138
|
+
|
139
|
+
["time_zone"]=> NULL
|
140
|
+
|
141
|
+
["geo_enabled"]=> bool(false)
|
142
|
+
|
143
|
+
["verified"]=> bool(false)
|
144
|
+
|
145
|
+
["statuses_count"]=> int(57)
|
146
|
+
|
147
|
+
["lang"]=> string(2) "ja"
|
148
|
+
|
149
|
+
["contributors_enabled"]=> bool(false)
|
150
|
+
|
151
|
+
["is_translator"]=> bool(false)
|
152
|
+
|
153
|
+
["is_translation_enabled"]=> bool(false)
|
154
|
+
|
155
|
+
["profile_background_color"]=> string(6) "F5F8FA"
|
156
|
+
|
157
|
+
["profile_background_image_url"]=> NULL
|
158
|
+
|
159
|
+
["profile_background_image_url_https"]=> NULL
|
160
|
+
|
161
|
+
["profile_background_tile"]=> bool(false)
|
162
|
+
|
163
|
+
["profile_image_url"]=> string(75) "http://pbs.twimg.com/profile_images/1061573140357177344/wv7CuFGe_normal.jpg"
|
164
|
+
|
165
|
+
["profile_image_url_https"]=> string(76) "https://pbs.twimg.com/profile_images/1061573140357177344/wv7CuFGe_normal.jpg"
|
166
|
+
|
167
|
+
["profile_banner_url"]=> string(68) "https://pbs.twimg.com/profile_banners/1059756301494837248/1541933750"
|
168
|
+
|
169
|
+
["profile_link_color"]=> string(6) "1DA1F2"
|
170
|
+
|
171
|
+
["profile_sidebar_border_color"]=> string(6) "C0DEED"
|
172
|
+
|
173
|
+
["profile_sidebar_fill_color"]=> string(6) "DDEEF6"
|
174
|
+
|
175
|
+
["profile_text_color"]=> string(6) "333333"
|
176
|
+
|
177
|
+
["profile_use_background_image"]=> bool(true)
|
178
|
+
|
179
|
+
["has_extended_profile"]=> bool(false)
|
180
|
+
|
181
|
+
["default_profile"]=> bool(true)
|
182
|
+
|
183
|
+
["default_profile_image"]=> bool(false)
|
184
|
+
|
185
|
+
["following"]=> bool(false)
|
186
|
+
|
187
|
+
["follow_request_sent"]=> bool(false)
|
188
|
+
|
189
|
+
["notifications"]=> bool(false)
|
190
|
+
|
191
|
+
["translator_type"]=> string(4) "none"
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
["geo"]=> NULL
|
196
|
+
|
197
|
+
["coordinates"]=> NULL
|
198
|
+
|
199
|
+
["place"]=> NULL
|
200
|
+
|
201
|
+
["contributors"]=> NULL
|
202
|
+
|
203
|
+
["is_quote_status"]=> bool(false)
|
204
|
+
|
205
|
+
["retweet_count"]=> int(0)
|
206
|
+
|
207
|
+
["favorite_count"]=> int(0)
|
208
|
+
|
209
|
+
["favorited"]=> bool(false)
|
210
|
+
|
211
|
+
["retweeted"]=> bool(false)
|
212
|
+
|
213
|
+
["lang"]=> string(2) "ja"
|
214
|
+
|
215
|
+
}
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
["search_metadata"]=> array(9)
|
220
|
+
|
221
|
+
{
|
222
|
+
|
223
|
+
["completed_in"]=> float(0.019)
|
224
|
+
|
225
|
+
["max_id"]=> int(1063589943115751424)
|
226
|
+
|
227
|
+
["max_id_str"]=> string(19) "1063589943115751424"
|
228
|
+
|
229
|
+
["next_results"]=> string(215) "?max_id=1063589943115751423&q=%23%E3%83%9D%E3%83%BC%E3%83%88%E3%83%AC%E3%83%BC%E3%83%88%20-RT%20since%3A2018-11-16_00%3A00%3A00_JST%20until%3A2018-11-17_23%3A59%3A59_JST&count=1&include_entities=1&result_type=recent"
|
230
|
+
|
231
|
+
["query"]=> string(133) "%23%E3%83%9D%E3%83%BC%E3%83%88%E3%83%AC%E3%83%BC%E3%83%88+-RT+since%3A2018-11-16_00%3A00%3A00_JST+until%3A2018-11-17_23%3A59%3A59_JST"
|
232
|
+
|
233
|
+
["refresh_url"]=> string(209) "?since_id=1063589943115751424&q=%23%E3%83%9D%E3%83%BC%E3%83%88%E3%83%AC%E3%83%BC%E3%83%88%20-RT%20since%3A2018-11-16_00%3A00%3A00_JST%20until%3A2018-11-17_23%3A59%3A59_JST&result_type=recent&include_entities=1"
|
234
|
+
|
235
|
+
["count"]=> int(1)
|
236
|
+
|
237
|
+
["since_id"]=> int(0)
|
238
|
+
|
239
|
+
["since_id_str"]=> string(1) "0"
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
}
|
14
244
|
|
15
245
|
```
|
16
246
|
|
@@ -20,11 +250,21 @@
|
|
20
250
|
|
21
251
|
```PHP
|
22
252
|
|
23
|
-
foreach ($
|
253
|
+
foreach ($tweets_arr["statuses"] as $d)
|
24
254
|
|
25
255
|
{
|
26
256
|
|
257
|
+
echo $d["source"]."<br>"; ←取得できる①
|
258
|
+
|
259
|
+
foreach ($d["user"] as $e)
|
260
|
+
|
261
|
+
{
|
262
|
+
|
263
|
+
echo $e->profile_image_url_https; ←取得できない②
|
264
|
+
|
27
|
-
|
265
|
+
echo $e["profile_image_url_https"]; ←取得できない③
|
266
|
+
|
267
|
+
}
|
28
268
|
|
29
269
|
}
|
30
270
|
|