mb_substr() WP 3.2.0
Compat function to mimic mb_substr().
No Hooks.
Return
String. Extracted substring.
Usage
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.
- $length(int/null)
- Maximum number of characters to extract from $str.
Default: null - $encoding(string/null)
- Character encoding to use.
Default: null
Notes
- See: _mb_substr()
Changelog
Since 3.2.0 | Introduced. |
Code of mb_substr() mb substr WP 5.6
function mb_substr( $str, $start, $length = null, $encoding = null ) {
return _mb_substr( $str, $start, $length, $encoding );
}