Код: Выделить всё
$VK = new vkapi($app_id, $api_secret);$resp = $VK->api('getProfiles', array('uids'=>1)); $a=$resp['response'][0]['uid'];$b=$resp['response'][0]['first_name'];$c=$resp['response'][0]['last_name']; echo $a;echo $b;echo $c;
Я пытался так:
Код: Выделить всё
$VK = new vkapi($app_id, $api_secret);$resp = $VK->api('getProfiles', array('uids'=>1)); $a=$resp['response'][0]['uid'];$b=$resp['response'][0]['first_name'];$c=$resp['response'][0]['last_name'];$d=$resp['response'][0]['photo_medium']; echo $a;echo $b;echo $c;echo $d; - Пустое поле получается.