Hello there,
I am trying to use substr_count() to count the number of Hebrew characters 
in a string,
I tried substr_count($test, "/[-]/"), but it returns 0 as if it can't 
match the regex I have inserted there, I hoped it will work the same as 
preg_match() that works great (preg_match("/[-]/", $test)) for example 
works just fine, but I guess substr_count() is a bit different...

Is there a way for me to do that? maybe with another similar function? (If 
not I will have to solve it in an ugly while loop that searches for Hebrew 
characters one by one...)

Thank you.



Regards

Gil Disatnik
UNIX system/security administrator.

GibsonLP@EFnet

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
"Windows NT has detected mouse movement, you MUST restart
your computer before the new settings will take effect, [ OK ]"
--------------------------------------------------------------------
Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating
system, written for a 4 bit processor by a 2 bit company which can
not stand 1 bit of competition.
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Reply via email to