I've got an array with countries like this
array(249) {
[0]=>
array(4) {
["country_id"]=>
string(1) "2"
["country_name_en"]=>
string(19) "Åland Islands"
["country_alpha2"]=>
string(2) "AX"
["country_alpha3"]=>
string(3) "ALA"
}
etc.
}
I would like to split it by the first letter so i get an array like this
array(26) {
'A' => array(10) {
array(4) {
["country_id"]=>
string(1) "2"
["country_name_en"]=>
string(19) "Åland Islands"
["country_alpha2"]=>
string(2) "AX"
["country_alpha3"]=>
string(3) "ALA"
}
etc.
}
etc.
}
But the problem is that the array of country names contains html entities as first character.
Any ideas how to do this?
thanks in advance
Peter