note 74128 deleted from function.strlen by nlopess
| From: | nlopess@php.net | Date: | Thu, 05 Apr 2007 19:38:49 +0000 |
| Subject: | note 74128 deleted from function.strlen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125118@lists.php.net to get a copy of this message | ||
Note Submitter: vavricek at volny dot cz
----
What you think about this:
$str_byte_length = strlen(bin2hex($string)) / 2;
explanation: every byte (in multi-byte character) has 2 hex-digits ... divided by 2 => number of
bytes
is it true?