Answer the question
In order to leave comments, you need to log in
PHP: How to get value from json?
Hello, tell me how to parse json and get the value.
json:
array (size=2)
'Items' =>
array (size=2)
0 =>
array (size=3)
'Id' => int 4064
'Name' => string 'Имя bla'
'Content' => string 'Bla имя это имя bla'
...
1 =>
array (size=3)
'Id' => int 4052
'Name' => string 'Имя quato'
'Content' => string 'Uno ozairbagen'
)
$results = json_decode($contents, TRUE);
$results->Items[1]->Id;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question