What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.?
John
strlen() is fine even for multibyte encodings, it does not know about encoding and returns the "raw" size. If you wanted the number of characters, you would need multibyte support.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php