I would write this array to another array using date as keys, and "values" as value. This is probably the fastest way to get what you are looking for.
Sort of:
$uniqueAry = array() foreach ($ary as $item) { $uniqueAry[$item['name']] = $item['value']; }
You probably want to turn on the logic bit to determine what value takes precedence in case of cheating.
source share