Core Function
View Source on Trac ↗ mb_substr()
mb_substr( mixed $string, mixed $start, mixed $length = null, mixed $encoding = null ) Compat function to mimic mb_substr().
Parameters 4 required
| Name / Type | Description |
|---|---|
| $string string | The string to extract the substring from. Required |
| $start int | Position to being extraction from in `$string`. Required |
| mixed | (int | null) $length Optional. Maximum number of characters to extract from `$string`. Default null. Required |
| (string | | null) $encoding Optional. Character encoding to use. Default null. Required |
Return Value
(string)
Extracted substring.
Function Information
Since Version
3.2.0
Source File
wp-includes/compat.php
Advertisement