WordPress at a glance
function is not described

mb_substr() WP 3.2.0

Compat function to mimic mb_substr().

  • See: _mb_substr()

No Hooks.


String. Extracted substring.


mb_substr( $str, $start, $length, $encoding );
$str(string) (required)
The string to extract the substring from.
$start(int) (required)
Position to being extraction from in $str.
Maximum number of characters to extract from $str.
Default: null
Character encoding to use.
Default: null

Code of mb substr: wp-includes/compat.php WP 5.2.2

function mb_substr( $str, $start, $length = null, $encoding = null ) {
	return _mb_substr( $str, $start, $length, $encoding );