$gg = file_get_contents('https://api.vk.com/method/messages.getInviteLink?'. $ri);
$tko = $gg->response[0]->link;"response": {
"link": "https://vk.me/joi...yiiJxCZ4E2PWvV1g2w_"
} $gg = json_decode(file_get_contents('https://api.vk.com/method/messages.getInviteLink?'. $ri));
$tko = $gg->response->link;