string_length
- Versions
- 4.6
string_length(&$text)
Count the amount of characters in a UTF-8 string. This is less than or equal to the byte count.
Related topics
Code
includes/common.inc, line 1854
<?php
function string_length(&$text) {
return strlen(preg_replace("/[\x80-\xBF]/", '', $text));
}
?>Login or register to post comments 