Somehow I feel that I'm missing something easy but I can't seem to find the answers anywhere. The answer might be Regular Expression, but I've never been very good at thinking my way through ereg().
I'm working with Accent Characters (À É Ç Î) and would like to efficiently search through my string and count all the Accent Characters.
The best function I came across was substr_count() but I would need to repeat this function with every Accent Character. Very inefficient.
For example, here are a few typical strings and responces I would like:
"ET COMPATIBILITÉ AVEC" = 1
"POUR ACCROÎTRE L'EFFICACITÉ" = 2
"DIFFICULTÉS FRÉQUENTES" = 2
I hope someone can help - Thanks to anyone that can!