Answer the question
In order to leave comments, you need to log in
How to access a JSON element?
$test = json_decode($data);
var_dump($test);
object(stdClass)#1 (1) {
["response"]=>
object(stdClass)#2 (2) {
["count"]=>
int(5086)
["items"]=>
array(19) {
[0]=>
object(stdClass)#3 (3) {
["id"]=>
int(158)
["first_name"]=>
string(10) "Иван"
["last_name"]=>
string(10) "Иванов"
}
}
}
}
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