I want to merges all the values from identification,general,address,employer array to the single line of $aa array as below format.
the original array to merges.
$aa = [
0 => [
'identification' => [
1 => ['Iden_type' => 'types'],
2 => ['Iden_num' => '000215'],
],
'general' => [
1 => ['gen_name' => 'name'],
2 => ['gen_lname' => 'lname'],
],
'address' => [
1 => ['add_type' => 'type'],
2 => ['add_text' => 'text'],
],
'contact' => [
1 => ['cont_type' => 'types'],
2 => ['cont_text' => 'text'],
],
'employer' => [
1 => ['emp_fname' => 'first name'],
2 => ['emp_lname' => 'last name'],
],
]
];
Result that I want to get from above array.
$aa = [
0 => [
'types',
'000215',
'name',
'lname',
'type',
'text',
'types',
'text',
'first name',
'last name',
],
1 => [
'types',
'000215',
'name',
'lname',
'type',
'text',
'types',
'text',
'first name',
'last name',
],
];