I have an array like this :
array(2) {
["currency"]=>
string(7) "bitcoin"
["Totalcs"]=>
string(1) "1"
}
array(2) {
["currency"]=>
string(8) "ethereum"
["Totalcs"]=>
string(1) "1"
}
array(2) {
["currency"]=>
string(8) "ethereum"
["Totalcs"]=>
string(1) "1"
}
I want to group this array like this :
array(2) {
["currency"]=>
string(7) "bitcoin"
["Totalcs"]=>
string(1) "1"
}
array(2) {
["currency"]=>
string(8) "ethereum"
["Totalcs"]=>
string(1) "2"
}
I tried many ways, but didn't work anyone ....please help me