А мне мой английский не позволяет так писать. Просто выворачивает, когда читаю "реврайт".
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.
Речь о традиционно сложившейся практике/сленгу в ру-девелоперсве.
А мне мой английский не позволяет так писать. Просто выворачивает, когда читаю "реврайт".
Speech on the traditionally established practice / slang in ru-developersve.
And I my English does not allow write well. Just turns, when I read "revrayt".
Sly32 задал абстрактный вопрос - задачу для первоклассника.
Он утверждает, что это очень важная задача. 😎
Ответом из моей задачки будет пользоваться полтора миллиона подписчиков
Не суть как эта задача появляется. Это может быть рекурсивно.
Да нет же. Он получает данные из базы данных.
Данные приходят на бэкенде из базы данных
Sly32 asked the abstract question - challenge for a first grader.
He argues that this is a very important task. 😎
The response of my tasks will be to use one and a half million subscribers
Not the essence of this task is displayed. This can be recursive.
No. It receives data from the database.
The data come from the backend to the database
Sitealert, странно, что вы до сих пор не прочитали написанное мной.
Я всё прочитал. В каком месте ещё читать? Покажи.
Я нахожусь немного в других реалиях.
Sitealert, it is strange that you still have not read written by me.
I read everything. At what point more to read? Show.
I'm a little bit in other realities.
Если начинать от стартпоста, то там массив объектов. Проблема решения задачи высосана из пальца.
Решение на javascript:
a.map(function(item){if(item.media_category!='promo')b.push(item)});Решение на PHP:
Но правильнее сразу делать выборку из БД. И БД выбирать такую, которая может хранить структурированные данные, а не всякое говно.
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:
But the right once to select from the database. And choose a database that can store structured data, rather than any shit.
Вы main.js видели? Может там по id по значения полей по одному получаются и передаются.
Видел. ТС выше дал адрес. Нет там ничего.
Main.js you saw? Can there by id of the field values are obtained and transmitted by one.
Saw. TC above given address. No there is nothing.