Answer the question
In order to leave comments, you need to log in
Need help with VK API. Can you help?
Guys, help me write a json parser that would randomly display the user ID of the user in the group on the page. ( https://api.vk.com/method/groups.getMembers?group_... A simple parser, but I can’t catch up with how to display the user ID.
Answer the question
In order to leave comments, you need to log in
php
$json = json_decode('{"response":{"count":15,"users":[99808867,336771832,340744303,348347524,349873846,410937337,420254764,421803657,430090433,437260449,441405703,448885709,450909157,453662421,453751364]}}', true);
$json['response']['users'][rand(0, count($json['response']['users']))];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question