Answer the question
In order to leave comments, you need to log in
PHP and json how to process the response from vkontakte?
Tell me what's the problem. There is the following code for working with the vk API:
$td_data = get_json(" https://api.vk.com/method/groups.getMembers?group_... ");
$r = json_decode($td_data);
$buffy_array = $r->response[0]->count;
The VK server response is:
{"response":{"count":3636,"items":[]}}
We need to get the value of the count object, but nothing happens.
Where is the mistake?
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