![]() |
![]() |
---Gregor--- |
![]()
Post
#1
|
Goście ![]() |
Plik JSON:
[‹"embed_count":"3204","name":"username","s_count":"5900","category":"gaming","format":"live","_count":9538›] Dostaję w PHP: Array ( [0] => Array ( [embed_count] => 3216 [name] => username [s_count] => 5900 [category] => gaming [format] => live [_count] => 9538 ) Kod: $json_file = @file_get_contents("...", 0, null, null); $json_array = json_decode($json_file, true); $this->guests= $json_array[0]['_count']; I uwagach mam: Undefined offset: 0 in ... Ktoś mi może to wytłumaczyć? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 2.10.2025 - 17:14 |