mb_substr()
Compat function to mimic mb_substr().
No Hooks.
Return
String
. Extracted substring.
Usage
mb_substr( $string, $start, $length, $encoding );
- $string(string) (required)
- The string to extract the substring from.
- $start(int) (required)
- Position to being extraction from in $string.
- $length(int|null)
- Maximum number of characters to extract from $string.
Default: null - $encoding(string|null)
- Character encoding to use.
Default: null
Notes
- See: _mb_substr()
Changelog
Since 3.2.0 | Introduced. |
mb_substr() mb substr code WP 6.7.1
function mb_substr( $string, $start, $length = null, $encoding = null ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.stringFound return _mb_substr( $string, $start, $length, $encoding ); }