I have the following array:
Array ( [0] => Array ( [setor_loja] => 43 [impressao] => (P) Pizza 2 + Pizza 2\n ) ) Array ( [1] => Array ( [setor_loja] => 83 [impressao] => Acai 300 ml\n ) [2] => Array ( [setor_loja] => 83 [impressao] => AA§ai 500 ml\n ) ) Array ( [3] => Array ( [setor_loja] => 33 [impressao] => Misto c/ ovo\n ) [4] => Array ( [setor_loja] => 33 [impressao] => Misto duplo\n ) )
I would like the output to look like this: (P) Pizza 2 + Pizza 2 \ n (leave alone)
Acai 300 ml \ n + Acai 500 ml \ n (leaving together since these two products are from the same industry)
Mixed with egg \ n + Mixed double \ n (leave together since these two products are from the same industry)