Y
Y
yischyk2019-08-10 20:35:49
PHP
yischyk, 2019-08-10 20:35:49

How to output vk api array data on condition?

Good evening!
There is a request to the VK API

$wall_get = json_decode(file_get_contents('https://api.vk.com/method/wall.get?owner_id=-1&count=50&filter=owner&access_token=TOKEN&v=5.101'), true);

And for example, I display information in a cycle, namely the IDs of posts
foreach ($wall_get['response']['items'] as $result_wall_get) { echo $result_wall_get['id'];}

but each post still has a publication date, how can I write to display the post where date = 1565458434(the date the question was written, if anything)
I’m glad for all the answers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kozlov, 2019-08-10
@yischyk

if ($result_wall_get['date'] == '1565458434') {
    echo $result_wall_get['id']
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question