我需要做这件事:我有一个像下面这样的对象,但我需要做对象1_(anything),object2_(anything)等对象数量的总和
stdClass Object
(
[object1_2012_06_12] => 16
[object2_2012_06_12] => 10
[object1_2012_06_11] => 16
[object2_2012_06_11] => 10
)
例如:object1_( anything )的总和将是 (object1_2012_06_12 + object1_2012_06_11) = (16+16)=32