А мне мой английский не позволяет так писать. Просто выворачивает, когда читаю "реврайт".
And I my English does not allow write well. Just turns, when I read "revrayt".
Он утверждает, что это очень важная задача. 😎
Да нет же. Он получает данные из базы данных.
He argues that this is a very important task. 😎
No. It receives data from the database.
Я всё прочитал. В каком месте ещё читать? Покажи.
I read everything. At what point more to read? Show.
Если начинать от стартпоста, то там массив объектов. Проблема решения задачи высосана из пальца.
Решение на javascript:
a.map(function(item){if(item.media_category!='promo')b.push(item)});
Решение на PHP:
foreach($arr as $k=>$a) if($a->media_category == 'promo') unset($arr[$k]);
Но правильнее сразу делать выборку из БД. И БД выбирать такую, которая может хранить структурированные данные, а не всякое говно.
If you start from startposta, then there is an array of objects. The problem of solving the problem is sucked from the finger.
on javascript solution:
a.map (function (item) {if (item.media_category = 'promo') b.push (item)!});
The decision on the PHP:
foreach ($ arr as $ k => $ a) if ($ a-> media_category == 'promo') unset ($ arr [$ k]);
But the right once to select from the database. And choose a database that can store structured data, rather than any shit.
Видел. ТС выше дал адрес. Нет там ничего.
Saw. TC above given address. No there is nothing.