$money = Array (0 =>array (' money ' = ' + ', ' time ' = ' 2012-10-18 ',), 1 =>arr Ay (' money ' = ' + ', ' time ' = ' 2012-10-17 ',), 2 =>array (' money ' = ' $ '), ' t IME ' = ' + ' 2012-10-16 ',), 3 =>array (' money ' = ' 428 ', ' time ' = ' 2012-10-15 ',), 4 =>array (' money ' = ' 776 ', ' time ' = ' 2012-10-14 ',), 5 =>array (' money ' = ' 298 ', ' time ' = ' 2012-10-13 ',), 7 =>array (' money ' = ' "'" ' "'" ' ", ' time ' = ' 2012-10-11 ') , 8 =>array (' money ' = ' 199 ', ' time ' = ' 2012-10-10 ',), $money 2 = array (0 =&G T;array (' Gamemoney ' = ' 2 ', ' time ' = ' 2012-10-16 ',), 1 =>array (' gamemoney ' = ' + ', ' Ti Me ' = ' 2012-10-13 ',), 2 =>array (' gamemoney ' = ' require ', ' time ' = ' 2012-10-12 ',),); ' debug.php '); foreach ($Money as & $val) {$val [' Gamemoney ']= ';} foreach ($money 2 as & $val 2) {$val 2[' money ']= ';} $times =array (), foreach ($money as $key = + $val 3) {Array_push ($times, $val 3[' time ');} foreach ($money 2 as $key + $val 4) {if (In_array ($val 4[' time ', $times)) {$money _key = Array_search ( $val 4[' time '], $times); $money [$money _key] [' gamemoney '] = $val 4 [' Gamemoney ']; }else{Array_push ($money, Array (' Gamemoney ' + $val 4[' Gamemoney '], ' time ' = $val 4[' time ', ' money ' = ') '); }}foreach ($money as $AAAAA) {$TIMEAA []= $aaaaa [' Time '];} Array_multisort ($TIMEAA, Sort_desc, $money); Zend_debug::d UMP ($money);