I have a multidimensional array looking like this:
Array
(
[0] => Array
(
[name] => name1
[sha1] => sha1
[size] => 693989968
)
[1] => Array
(
[name] => name1
[sha1] => sha2
[size] => 757204238
)
[2] => Array
(
[name] => name2
[sha1] => sha3
[size] => 1068277922
)
[3] => Array
(
[name] => name3
[sha1] => sha4
[size] => 996843467
)
The return of the wanted function should be sha2,sha3,sha4; when a name is in there more than once, the higher size should be kept.
I tried for some hours now, using asort, splitting into multiple array (for name,sha and size) but none have worked until now.