$sex_query = json_decode(file_get_contents('https://api.vk.com/method/groups.getMembers?group_id='.$id_group.'&fields=sex&access_token='.$token.'&v='.$v), true);
foreach ($sex_query['response']['items'] as $data_sex) {
$array = array($sex_query['sex']);
$result = array_count_values($array);
echo $result[1];
<?php
$search_get = file_get_contents('https://api.vk.com/method/groups.search?q=Music&count=3&access_token='.$token.'&fields=id,name,photo_200&v='.$v);
$search = json_decode($search_get, true);
$result = $search['response']['items'][0];
echo '<img class="photo_group_200" src="'.$result['photo_200'].'">';
echo $result['id'];
echo $result['name'];
?>