Attention to the function strlen

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.

Ca te plait then sharing:
  • Sphinn
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Scoopeo
  • Wikio FR
  • MisterWong FR




0 Responses to "Beware the function strlen"

  1. No comments

Leave a comment




My Gallery


The gallery image davtheultimate

Translator

French flagItalian flagKorean flagChinese (Simplified) flagPortuguese flagEnglish flagGerman flagSpanish flag
Japanese flag       

Categories