mb_strlen()
Compat function to mimic mb_strlen().
No Hooks.
Return
Int
. String length of $string.
Usage
mb_strlen( $string, $encoding );
- $string(string) (required)
- The string to retrieve the character length from.
- $encoding(string|null)
- Character encoding to use.
Default: null
Notes
- See: _mb_strlen()
Changelog
Since 4.2.0 | Introduced. |
mb_strlen() mb strlen code WP 6.5.2
function mb_strlen( $string, $encoding = null ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound return _mb_strlen( $string, $encoding ); }