I can not figure it out. I try to get everything going in this way, but it does not work.
$response_2 = file_get_contents("http://api.vk.com/method/likes.getList?type=photo&owner_id=".$owner_id."&item_id=".$item_id."&filter=likes"); $resp_2 = json_decode($response_2, true); if (in_array($pr_user, $resp_2['response']['users'])) {echo "Лайк к Фото поставлен"; }else{echo "Лайк к Фото НЕ поставлен";} Rather, it works, but before that it shows such an error
Warning: in_array() [function.in-array]: Wrong datatype for second argument in Q:\home\localhost\www\vk_servike\vk_service\vklike\vklike.php on line 45 How to be? What is the reason? Help someone.