Core Function
View Source on Trac ↗ mb_strlen()
mb_strlen( mixed $string, mixed $encoding = null ) Compat function to mimic mb_strlen().
Parameters 2 required
| Name / Type | Description |
|---|---|
| $string 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 `$string`.
Function Information
Since Version
4.2.0
Source File
wp-includes/compat.php
Advertisement