A WordPress-centric search engine for devs and theme authors



mb_strlen ›

Since4.2.0
Deprecatedn/a
mb_strlen ( $str, $encoding = null )
Parameters: (2)
  • (string) $str The string to retrieve the character length from.
    Required: Yes
  • (string|null) $encoding Optional. Character encoding to use. Default null.
    Required: No
    Default: null
See:
Returns:
  • (int) String length of `$str`.
Defined at:
Codex:

Compat function to mimic mb_strlen().



Source

function mb_strlen( $str, $encoding = null ) {
		return _mb_strlen( $str, $encoding );
	}
endif;