Someone can help me, please.
I have an array in this style:
$arrayTable = array(
0 => array(
'idApiUm' => 123,
'title' => 'Teste'
),
1 => array (
'idApiDois' => 765,
'title' => 'Título'
),
2 => array(
'idApiUm' => 632,
'title' => 'Nome'
),
3 => array(
'idApiDois' => 999,
'title' => 'Teste'
),
);
You need to merge all arrays inside it that have the same value in 'title', and leave the key like this:
0 => array(
'idApiUm' => 123,
'idApiDois' => 999,
'title' => 'Teste'
),
Is it possible? I can not solve this problem ...