In case anyone is interested
Function IsHebrew($string) {
If(ereg('[?-?]',$string,$regs)) {
Echo"Hebrew";
}Else{
Echo"English";
}
}
Not everyone can see the [?-?]. In any case this can be good for any
language
berber
-Origina
On Monday, April 15, 2002, at 02:43 PM, Boaz Yahav wrote:
> I have an application that works with two languages. I'm trying to write
> a function that will tell me if a string
> contains only English or also chars from the other language. It's enough
> that there is one char of a different
> la
2 matches
Mail list logo