I need to count how many Hebrew characters a given string has. I have
been checking, character by character, if the given character is a
[א-ת] and if so I simply ++ the counting variable. It turns out that
this is rather resouce intensive, and I may need a better way of doing
this. I have looked at count_chars and considered writing a wrapper
function for each of the 27 letters of the Hebrew alphabet, but I am
quite sure that there is a cleverer method. Any ideas?
You may want to investigate mb_strlen():
http://uk.php.net/mb_strlen
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv