Never ever…
![](https://i0.wp.com/thrasos.net/wp-content/uploads/2012/02/Meme-Fu1.jpg?resize=368%2C264&ssl=1)
…forget that every Greek character is counted as 2 by the strlen function in PHP. So if you have say a string “Γειά” the strlen will return 8.
Try using MB_STRLEN() instead. If you know the encoding you can save time.
mb_strlen ( string $str [, string $encoding ] )
You can say something here...