strlen() under unicode.semantics
| From: | Daniel Convissor | Date: | Wed, 21 Jun 2006 17:14:51 +0000 |
| Subject: | strlen() under unicode.semantics | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-24170@lists.php.net to get a copy of this message | ||
Hi:
Enjoyed Andrei's talk at the NYPHP Conference last week about unicode in
PHP 6. He mentioned that when unicode.semantics is on, strlen() will
return the number of characters rather than the number of bytes, like
mb_string() does or strlen() if mbstring.func_overload is on.
The hitch here is there are situations where one needs to know how many
bytes are in a string. Is there a function I've overlooked that does
this or will do this, please?
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409