note 91154 deleted from function.strlen by hholzgra

From: Date: Thu, 02 Aug 2012 12:16:24 +0000
Subject: note 91154 deleted from function.strlen by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189621@lists.php.net to get a copy of this message
Note Submitter: Vladimir Zafirov ---- You can also just say: <?php strlen(utf8_decode($a)) ?> The utf8_decode($a) will take care of converting the utf characters that have more than one byte in to one symbol and the strlen() will count those correctly as length 1.

« previous php.notes (#189621) next »