note 95059 deleted from function.strlen by thiago

From: Date: Fri, 11 Dec 2009 11:55:58 +0000
Subject: note 95059 deleted from function.strlen by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163849@lists.php.net to get a copy of this message
Note Submitter: bjorn at wikkeling dot com ---- @ Vladimir Zafirov instead of saying: <? strlen(utf8_decode($a)); ?> You can use: <? mb_strlen(); ?> @ Dutch Hans In ASCII one character is one byte. Depending on the encoding this might vary though, that's where Multi Byte encoding comes in. So again, see <? mb_strlen(); ?> for that.

« previous php.notes (#163849) next »