Orrrrr... Since the days are unique:
<?php
header('Content-type: text/plain');
$inputArray = array(
array('qty' => 5, 'dd' => '01-Nov-2012'),
array('qty' => 10, 'dd' => '01-Nov-2012'),
array('qty' => 3, 'dd' => '02-Nov-2012'),
array('qty' => 4, 'dd' => '03-Nov-2012'),
array('qty' => 15, 'dd' => '03-Nov-2012'));
$outputArray = array();
foreach ( $inputArray as $record ) {
if ( !key_exists($record['dd'], $outputArray) ) {
$outputArray[$record['dd']] = 0;
}
$outputArray[$record['dd']] += $record['qty'];
}
print_r($outputArray);
would produce:
Array
(
[01-Nov-2012] => 15
[02-Nov-2012] => 3
[03-Nov-2012] => 19
)