'Way to count a php array with key separation [closed]
I could need some help from the experts here :)
I do have an php array:
Array ( [A] => 5 [B] => 1 [A,B] => 5 )
For statistics i need to summ the value for each keyword. So I would need an output like this:
Array ( [A] => 10 [B] => 6 )
Someone an idea? Any help is much appreciated :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
