$arr_users = $vk->request('messages.getConversationMembers', ['peer_id' => $chat_ids, 'group_id' => $group_id]);
foreach ($arr_users['items'] as $item) {
if($item['is_admin']) {
$memberid = $item['member_id'] ;
}
}
<?php
$arr_users = $vk->request('messages.getConversationMembers', ['peer_id' => $chat_ids, 'group_id' => $group_id]);
$memberid = 0;
foreach ($arr_users['items'] as $item) {
if($item['is_admin']) {
$memberid = $item['member_id'];
break;
}
}
if ($memberid !== 0) {
// Используете переменную
}