0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
joomla
/
1.5.3-1
/
htdocs
/
libraries
/
phputf8
/
mbstring
/
[
Home
]
File: strlen.php
<?php /** * @version $Id: strlen.php 7692 2007-06-08 20:41:29Z tcp $ * @package utf8 * @subpackage strings */ /** * Define UTF8_STRLEN as required */ if ( !defined('UTF8_STRLEN') ) { define('UTF8_STRLEN',TRUE); } //-------------------------------------------------------------------- /** * Wrapper round mb_strlen * Assumes you have mb_internal_encoding to UTF-8 already * Note: this function does not count bad bytes in the string - these * are simply ignored * @param string UTF-8 string * @return int number of UTF-8 characters in string * @package utf8 * @subpackage strings */ function utf8_strlen($str){ return mb_strlen($str); }