Answer the question
In order to leave comments, you need to log in
How can I parse records of VK groups?
Get text and pictures
Answer the question
In order to leave comments, you need to log in
Text
$wall = file_get_contents("http://api.vk.com/method/wall.get?v=5.3&filter=others&domain=chertanovo_center&count=5"); // Отправляем запрос
$wall = json_decode($wall, true); // Преобразуем JSON-строку в массив
$i=0;
foreach($wall as $item){
echo "<p><b>".($i ++)."</b>. <i>".$item['text']."</i><span>".date("Y-m-d H:i:s", $item['date'])."</span></p>"; // Выводим записи
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question