I have following array, want to merge it and implode last element by comma. First two elements will always be the same,only the last elements will vary, want to implode it by comma.
Input Array
[dob] => Array
(
[0] => Array
(
[dob] => 20 Feb 1989
[age] => 28
[data] => abc
)
[1] => Array
(
[dob] => 20 Feb, 1989
[age] => 28
[data] => xyz
)
)
Expected output:
Want to get the following output:-
[dob] => Array
(
[dob] => 20 Feb 1989
[age] => 28
[data] => abc,xyz
)