PHP merge similar values with Total Count in an array
Please help me. 

I have array like below.

    Array
    (
    [0] => Array
        (
            [uid] => 385239
            [date] => 2011-11-26
            [total_trans] => 1
            [total_sum] => 10
        )
    
     [1] => Array
        (
            [uid] => 373765
            [date] => 2011-11-25
            [total_trans] => 1
            [total_sum] => 1
        )

    [2] => Array
        (
            [uid] => 360808
            [date] => 2011-11-21
            [total_trans] => 5
            [total_sum] => 112
        )

    [3] => Array
        (
            [uid] => 341154
            [date] => 2011-11-21
            [total_trans] => 1
            [total_sum] => 1
        )

    [4] => Array
        (
            [uid] => 22645
            [date] => 2011-11-21
            [total_trans] => 1
            [total_sum] => 1
        )

    [5] => Array
        (
            [uid] => 346431
            [date] => 2011-11-19
            [total_trans] => 1
            [total_sum] => 1
        )

    [6] => Array
        (
            [uid] => 107155
            [date] => 2011-11-19
            [total_trans] => 7
            [total_sum] => 14
        )

    [7] => Array
        (
            [uid] => 348526
            [date] => 2011-11-19
            [total_trans] => 1
            [total_sum] => 1
        )

my result like below


date &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;Uid &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;total_trans &nbsp; &nbsp;&nbsp; &nbsp;total_sum <br />

2011-11-26 &nbsp; &nbsp;385239  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;10 <br />

2011-11-26 &nbsp; &nbsp;373765  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;10 <br />

2011-11-21 &nbsp; &nbsp;360808 &nbsp; &nbsp;&nbsp; &nbsp; 5  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;112 <br />

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;341154  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;1 <br />

2011-11-21(total) &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;6  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;113 <br />

2011-11-19 &nbsp; &nbsp;107155 &nbsp; &nbsp;&nbsp; &nbsp; 7  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;14 <br />

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;346431 &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;1 <br />

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;348526  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;1 <br />

2011-11-19(total) &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;9  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;16 <br />


PHP merge similar values with Total Count in an array
===

Please help me. 

I have array like below.

    Array
    (
    [0] => Array
        (
            [uid] => 385239
            [date] => 2011-11-26
            [total_trans] => 1
            [total_sum] => 10
        )
    
     [1] => Array
        (
            [uid] => 373765
            [date] => 2011-11-25
            [total_trans] => 1
            [total_sum] => 1
        )

    [2] => Array
        (
            [uid] => 360808
            [date] => 2011-11-21
            [total_trans] => 5
            [total_sum] => 112
        )

    [3] => Array
        (
            [uid] => 341154
            [date] => 2011-11-21
            [total_trans] => 1
            [total_sum] => 1
        )

    [4] => Array
        (
            [uid] => 22645
            [date] => 2011-11-21
            [total_trans] => 1
            [total_sum] => 1
        )

    [5] => Array
        (
            [uid] => 346431
            [date] => 2011-11-19
            [total_trans] => 1
            [total_sum] => 1
        )

    [6] => Array
        (
            [uid] => 107155
            [date] => 2011-11-19
            [total_trans] => 7
            [total_sum] => 14
        )

    [7] => Array
        (
            [uid] => 348526
            [date] => 2011-11-19
            [total_trans] => 1
            [total_sum] => 1
        )

my result like below


date &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;Uid &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;total_trans &nbsp; &nbsp;&nbsp; &nbsp;total_sum <br />

2011-11-26 &nbsp; &nbsp;385239  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;10 <br />

2011-11-26 &nbsp; &nbsp;373765  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;10 <br />

2011-11-21 &nbsp; &nbsp;360808 &nbsp; &nbsp;&nbsp; &nbsp; 5  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;112 <br />

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;341154  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;1 <br />

2011-11-21(total) &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;6  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;113 <br />

2011-11-19 &nbsp; &nbsp;107155 &nbsp; &nbsp;&nbsp; &nbsp; 7  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;14 <br />

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;346431 &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;1 <br />

&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;348526  &nbsp; &nbsp;&nbsp; &nbsp; 1  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;1 <br />

2011-11-19(total) &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;9  &nbsp; &nbsp;&nbsp; &nbsp;  &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;16 <br />

