how to create a function to get sum of Colors given in this array.....expected output=('RED'=>21,'GREEN=>'..etc) in php : '
$sales = array 
(
'FIRST'=> array('RED'=> array(9,3),'GREEN'=> array(4,5,8,2)),
 
         'SECOND'=> array('RED'=> array(3,5,5,2),'YELLOW'=> array(4,2,5)), 

         'THIRD'=> array('BLUE'=> array(1,2,4),'RED'=> array(9,4,6)),

         'FOUR'=> array('BLUE'=> array(2,3,3,5),'BLACK'=> array(4,5,8,9)));'


