Display the text box

mb_strlen()

« mb_stristr | mb_strpos »
<?php
mb_internal_encoding
("UTF-8");

$mixed mb_strlen (
    
// string $str
    
?  // [string $encoding = mb_internal_encoding()]
);

// enter non ASCII characters in hex if $encoding is not UTF-8
// the result may not display properly if $encoding is not UTF-8
?>
Result
$mixed = 7
Examples
#1 mb_strlen  ("español",
 
"UTF-8")
See also
grapheme_strlen, iconv_strlen, mb_convert_case, mb_internal_encoding, strlen