S
S
Sergey2020-07-08 22:22:20
PHP
Sergey, 2020-07-08 22:22:20

How to merge 2 arrays by common key?

Good afternoon.
Tell me how you can combine 2 arrays into one by a common key?

Structure example:
1st array with fields: store ID, store category ID
2nd array with fields: store ID, another field

Here, by the store ID, you need to collect a single array.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2020-07-08
@StockholmSyndrome

array_merge

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question