<?php
'data' => '2015-02-05',
'refer' => 'X741852',
'favorecido' => 'MARIA',
'debito' => '2.500'
);
'data' => '2015-02-05',
'refer' => 'B890656',
'favorecido' => 'EDUARDA',
'debito' => '500'
);
'data' => '2015-02-18',
'refer' => 'CK546045',
'favorecido' => 'JOAO',
'debito' => '42.050'
);
'data' => '2014-06-09',
'refer' => 'FE55852',
'favorecido' => 'CHARLES',
'debito' => '28.500'
);
'data' => '2014-06-09',
'refer' => 'X741852',
'favorecido' => 'VIVIANE',
'debito' => '74.2500'
);
$i = 0;
foreach( $data as $item) $out[$item['data']][$i++] = $item;
PD9waHAKCiRkYXRhW10gPSBhcnJheSgKICAgICdkYXRhJyA9PiAnMjAxNS0wMi0wNScsCiAgICAncmVmZXInID0+ICdYNzQxODUyJywKICAgICdmYXZvcmVjaWRvJyA9PiAnTUFSSUEnLAogICAgJ2RlYml0bycgPT4gJzIuNTAwJwopOwokZGF0YVtdID0gYXJyYXkoCiAgICAnZGF0YScgPT4gJzIwMTUtMDItMDUnLAogICAgJ3JlZmVyJyA9PiAnQjg5MDY1NicsCiAgICAnZmF2b3JlY2lkbycgPT4gJ0VEVUFSREEnLAogICAgJ2RlYml0bycgPT4gJzUwMCcKKTsKJGRhdGFbXSA9IGFycmF5KAogICAgJ2RhdGEnID0+ICcyMDE1LTAyLTE4JywKICAgICdyZWZlcicgPT4gJ0NLNTQ2MDQ1JywKICAgICdmYXZvcmVjaWRvJyA9PiAnSk9BTycsCiAgICAnZGViaXRvJyA9PiAnNDIuMDUwJwopOwokZGF0YVtdID0gYXJyYXkoCiAgICAnZGF0YScgPT4gJzIwMTQtMDYtMDknLAogICAgJ3JlZmVyJyA9PiAnRkU1NTg1MicsCiAgICAnZmF2b3JlY2lkbycgPT4gJ0NIQVJMRVMnLAogICAgJ2RlYml0bycgPT4gJzI4LjUwMCcKKTsKJGRhdGFbXSA9IGFycmF5KAogICAgJ2RhdGEnID0+ICcyMDE0LTA2LTA5JywKICAgICdyZWZlcicgPT4gJ1g3NDE4NTInLAogICAgJ2Zhdm9yZWNpZG8nID0+ICdWSVZJQU5FJywKICAgICdkZWJpdG8nID0+ICc3NC4yNTAwJwopOwoKJGkgPSAwOwoKZm9yZWFjaCggJGRhdGEgYXMgJGl0ZW0pICRvdXRbJGl0ZW1bJ2RhdGEnXV1bJGkrK10gPSAkaXRlbTsKCnByaW50X3IoICRvdXQgKTsK