Give an array in PHP with 100,000 string elements, I am looking for a way to count the distribution of the first character in the string.
So essentially the output I am looking for is something like:
array(
0 => 3563,
1 => 3146,
...
'a' => 3590,
'b' => 3863,
...
'A' => 3224,
'B' => 3765
)
How is this achieved?