Answer the question
In order to leave comments, you need to log in
What happened to foreach?
foreach ($products as $product)
{
$newProduct = $productForm; //Берем форму продукта
foreach($newProduct as $column)
{
$value = $product[$column['name']]; //тут беру значение продукта по имени колонки
$column['value'] = $value; //Заполняем значение
}
$resultArr[] = $newProduct; // Получаем массив с незаполненными значениями
}
Answer the question
In order to leave comments, you need to log in
Well, as it were, everything is correctly written in the comments, what is the actual question?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question