I have an array like this:
Array
(
[0] => Array
(
[url_id] => 1
[time_spent] => 41
)
[1] => Array
(
[url_id] => 2
[time_spent] => 25
)
[2] => Array
(
[url_id] => 1
[time_spent] => 41
)
)
So, how to get the 'distinct' of time_spent and also the 'sum' of the time_spent.
Thanks.