Ich versuche, zu navigieren und Informationen aus diesem Array zu holen, aber ich habe keine viel Erfolg irgendwelche Tipps? Dies ist eine decodierte JSON von Twitter APIWie navigiere ich und hole mir Informationen von einem Array wie diesem
Ich versuchte echo $array->statuses[0]->created_at;
und es hat nicht funktioniert, mache ich etwas falsch hier?
Array
(
[statuses] => Array
(
[0] => stdClass Object
(
[created_at] => Thu Jul 06 04:05:06 +0000 2017
[id] => 882812623959584768
[id_str] => 882812623959584768
[text] => RT @blackdragonsBR: [R6] GG!! Fechamos o mapa Banco por 5x2 e conquistamos a liderança no #ALIENWARENOIGN #GOBD #Acer #Predator https://t.c…
[truncated] =>
[entities] => stdClass Object
(
[hashtags] => Array
(
[0] => stdClass Object
(
[text] => ALIENWARENOIGN
[indices] => Array
(
[0] => 90
[1] => 105
}
)
}
}
}
}
}
Nun denke ich, dachte ich es aus, 'echo $ array [ 'Status'] [0] -> created_at;' –
Verwenden Sie einfach '[ ] 'beim ersten Zugriff wie:' $ array [status] [0] -> created_at; ' –