C
C
client242014-11-14 15:28:39
In contact with
client24, 2014-11-14 15:28:39

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

1 answer(s)
E
Elena, 2014-11-14
@client24

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 question

Ask a Question

731 491 924 answers to any question