Can anyone tell me how i can convert the first array to second array using php array operations.
First array :-
Array
(
[0] => Array
(
[actual_release_date] => 2013-06-07 00:00:00
[distributors] => 20th Century Fox / 20th Century Fox Animation / Fox 2000 Pictures / Fox Searchlight
)
[1] => Array
(
[actual_release_date] => 2013-06-28 11:11:00
[distributors] => 20th Century Fox / 20th Century Fox Animation / Fox 2000 Pictures / Fox Searchlight
)
)
Second array:-
Array
(
[0] => Array
(
[actual_release_date] => array( 0=>2013-06-07 00:00:00 , 1=> 2013-06-28 11:11:00 )
[distributors] => 20th Century Fox / 20th Century Fox Animation / Fox 2000 Pictures / Fox Searchlight
)
)
If the second element is common, and first element is different, then we have to group it in one array.
Thanks in advance.