0
我的代碼是這樣的獲取值彼此相加
// $t = new ProjectProgressDao();
// $progressValues = $t->getRecords($projectId);
foreach ($progressValues as $Values) {
$weekStartingDays[$this->CalculateWeekStartDate($Values->getDate())] = $Values->getWorkCompleted();
}
基本上我想要的是???
Array
(
[a1]=>'k'
[a2]=>'a'
[a1]=>'w'
[a1]=>'z'
}
我想
Array
(
[a1]=>'k+w+z'
[a3]=>'w'
[a4]=>'z'
)
A,B等都是數值
請更改你的問題... – Pabloks 2011-03-29 13:17:59