| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: strlen.php 10381 2008-06-01 03:35:53Z pasamio $ 4 * @package utf8 5 * @subpackage strings 6 */ 7 8 /** 9 * Define UTF8_STRLEN as required 10 */ 11 if ( !defined('UTF8_STRLEN') ) { 12 define('UTF8_STRLEN',TRUE); 13 } 14 15 //-------------------------------------------------------------------- 16 /** 17 * Wrapper round mb_strlen 18 * Assumes you have mb_internal_encoding to UTF-8 already 19 * Note: this function does not count bad bytes in the string - these 20 * are simply ignored 21 * @param string UTF-8 string 22 * @return int number of UTF-8 characters in string 23 * @package utf8 24 * @subpackage strings 25 */ 26 function utf8_strlen($str){ 27 return mb_strlen($str); 28 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |