A small mistake to use the function strlen just ask me a pretty little problem is finally solved. Indeed, with character encoding UTF-8.
The use of strlen ( "e") will give a score of 2 instead of 1. So to correct this bad visual outcome only, you use the mb_strlen which will return the correct number.
Each day that passes, I learn new php functions.



















0 Responses to "Beware the function strlen"
Please Wait
Leave a comment