V
V
V98212021-08-07 16:39:36
PHP
V9821, 2021-08-07 16:39:36

Vk api groups.getMembers?

There is a code

<?php 
 
$parameters = array(
  'group_id' => '206341834',
  'count' => 10,
  'access_token' => '49b128115cb022e27dc53404deaaef04c86a2c60235119744d2cd7b11ecafd0e151473152308b2229ee10',
  'v' => '5.80'
);
 
$obj = json_decode(file_get_contents('https://api.vk.com/method/groups.getMembers?' . http_build_query($parameters), true));
 
echo number_format($obj->{'response'}->{'count'}, 0, '', ' ');

It is necessary that it displays: Number + "participants", I indicate
echo number_format($obj->{'response'}->{'count'}, 0, '', ' ') участников;
and the script stops working

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question