I have two arrays of products that have the same articles, but a different quantity, and different cities.
But there are products that do not repeat themselves.
Array
$arr1 = array(
[0] => Array
(
[article] => А6-01-05
[name] => Example
[price] => 9 700
[quantity] => 3
[brand] => Oktan
[code] => УТ-00024246
[city] => Nur-Sultan
)
)
$arr2 = array(
[0] => Array
(
[article] => А6-01-05
[name] => Example
[price] => 9 700
[quantity] => 5
[brand] => Oktan
[code] => УТ-00024246
[city] => Almaty
)
)
I need something like
$arr = array(
[0] => Array
(
[article] => А6-01-05
[name] => Example
[price] => 9 700
[quantity] =>
[0] => 3
[1] => 5
[brand] => Oktan
[code] => УТ-00024246
[city] =>
[0] => Nur-Sultan
[1] => Almaty
)
)
and the goods that do not repeat were also in a new array as usual.