Hy,
Using getAlpha( $name ) is no good - it won't recognise, for example François
getAlpha( $name, $locale ) is no good because we have no idea ahead of time
which locale is appropriate.
Would it not be better to have getAlpha( $name ) be inclusive of all alpha
characters, and have the locale aware version be more specific?
but using it with ALL alpha characters would mean to recognise about 8000
different characters.
Even with \p{L} its killing speed.
WHEN there is a useage of getting ALL UTF8 letters from all languages I think
it would be better to add an third option.
getAlpha($name); - normal english/computer behavior
getAlpha($name, $locale); - localized behavior
getAlpha($name, Zend_Filter::ALL_UTF8); - using \p{L} receiving all utf8 letters
OR maybe it would also be good to seperate the UTF8 function.
getUTF8Alpha($name);
However, I would not let getAlpha search for ALL Utf8 letters due to
performance reasons.
Anyone who needs ALL Utf8 letters should now the performance issues selecting
this function seperately.
Greetings
Thomas