note 37998 deleted from function.strlen by dave
| From: | dave@php.net | Date: | Fri, 05 May 2006 03:23:20 +0000 |
| Subject: | note 37998 deleted from function.strlen by dave | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110599@lists.php.net to get a copy of this message | ||
Note Submitter: dtorop932 at hotmail dot com
----
A more succinct way to get strlen of UTF-8 string w/out the multi-byte string library:
$len = preg_match_all('/./u', $str, $dummy);
A side effect is the $dummy contains a UTF-8 character by character breakdown of the string...