Jump to content

how to distinguish arabic character


hno

Recommended Posts

hi,

I need to use strlen in my php website but the problem is strlen return different value for Arabic characters and English characters So for every Arabic character php returns 2 but in English it returns 1 .

Is there anyway to separate English from Arabic?I need to know the real strlen for Both languages .How should I do that?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/243558-how-to-distinguish-arabic-character/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.