Checking how many letters are in a string.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to count how many Hebrew characters a given string has. I havebeen checking, character by character, if the given character is a[א-ת] and if so I simply ++ the counting variable. It turns out thatthis is rather resouce intensive, and I may need a better way of doingthis. I have looked at count_chars and considered writing a wrapperfunction for each of the 27 letters of the Hebrew alphabet, but I amquite sure that there is a cleverer method. Any ideas?
Dotan Cohen
http://what-is-what.comhttp://gibberish.co.ilא-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת;
A: Because it messes up the order in which people normally read text.Q: Why is top-posting such a bad thing?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux