mb_strlen()WP 4.2.0

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

Changelog

Since 4.2.0 Introduced.

mb_strlen() code WP 6.5.2

function mb_strlen( $string, $encoding = null ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound
	return _mb_strlen( $string, $encoding );
}