Support Joomla!

Packages

Package: utf8

License

Content on this site is copyright © 2005 - 2008 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

File/phputf8/native/strlen.php

Description
Constants
UTF8_STRLEN = TRUE (line 12)

Define UTF8_STRLEN as required

Functions
utf8_strlen (line 33)

Unicode aware replacement for strlen(). Returns the number

of characters in the string (not the number of bytes), replacing multibyte characters with a single byte equivalent utf8_decode() converts characters that are not in ISO-8859-1 to '?', which, for the purpose of counting, is alright - It's much faster than iconv_strlen Note: this function does not count bad UTF-8 bytes in the string

  • these are simply ignored

int utf8_strlen (string $str)
  • string $str: UTF-8 string

Documentation generated on Sat, 14 Nov 2009 11:20:57 +0000 by phpDocumentor 1.3.1