function vk_fans_count($group_id) {
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.vk.com/method/groups.getMembers',
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_POSTFIELDS => [
'group_id' => $group_id,
'count' => 0,
'v' => 5.73
]
]);
$response = json_decode(curl_exec($curl))->response;
curl_close($curl);
return $response->count;
}