K
K
kllpff2021-06-13 15:04:40
PHP
kllpff, 2021-06-13 15:04:40

How to create arrays by array with keys?

Hello! Help me please. I have an array with keys that looks like this:

[0] => Артикул
[1] => Заголовок
[2] => Цена
[3] => Цена поставщика
[4] => Валюта
[5] => Наличие


And many arrays with values:
[0] => 123456
[1] => Товар #1
[2] => 5990
[3] => 3990
[4] => руб
[5] => В наличии


How to create keys from the first array and fill it with values ​​from many other arrays in a loop? If there is any example, that would be great. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-06-13
@kllpff

https://www.php.net/manual/en/function.array-combi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question