We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
substr
1 parent 1e00add commit d4e2185Copy full SHA for d4e2185
src/Illuminate/Support/Str.php
@@ -1125,11 +1125,12 @@ public static function studly($value)
1125
* @param string $string
1126
* @param int $start
1127
* @param int|null $length
1128
+ * @param string $encoding
1129
* @return string
1130
*/
- public static function substr($string, $start, $length = null)
1131
+ public static function substr($string, $start, $length = null, $encoding = 'UTF-8')
1132
{
- return mb_substr($string, $start, $length, 'UTF-8');
1133
+ return mb_substr($string, $start, $length, $encoding);
1134
}
1135
1136
/**
0 commit comments