Re: [PHP-DOC] strlen and multi-byte characters

2013-06-18 Thread Simion Onea
Hi! The documentation page of the "strlen" function has a note: *strlen()* returns the number of bytes rather than the number of characters in a string. Also in the "See also" section there is a reference to "mb_strlen()" which should be used when working with multibyte strings. 2013/6/13 Adam K

Re: [PHP-DOC] strlen and multi-byte characters

2013-06-16 Thread Sherif Ramadan
On Thu, Jun 13, 2013 at 4:34 PM, Adam Kazimierczak wrote: > Hello Mailing List, > > I found that strlen is often considered as a function that counts > characters in strings, rather than bytes. Such mistake is even often seen > on blogs or tutorials, so many PHP beginners may get confused when the

[PHP-DOC] strlen and multi-byte characters

2013-06-13 Thread Adam Kazimierczak
Hello Mailing List, I found that strlen is often considered as a function that counts characters in strings, rather than bytes. Such mistake is even often seen on blogs or tutorials, so many PHP beginners may get confused when they try to strlen a multi-byte characters string. I am attaching