Home>Article>Backend Development> php gets the number of words iconv_strlen in mixed English and Chinese
When the encoding of our web page is utf-8, we can use this:
For example: iconv_strlen("Hello hehe","utf-8") //6
The above introduces how to obtain iconv_strlen, the number of words mixed in English and Chinese, in PHP, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.