Core Function
View Source on Trac ↗ _mb_strlen()
_mb_strlen( mixed $str, mixed $encoding = null ) Internal compat function to mimic mb_strlen().
Parameters 2 required
| Name / Type | Description |
|---|---|
| $str string | The string to retrieve the character length from. Required |
| (string | | null) $encoding Optional. Character encoding to use. Default null. Required |
Return Value
(int)
String length of `$str`.
Function Information
Since Version
4.2.0
Source File
wp-includes/compat.php
Advertisement