mb_strcut()
function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): string
Selects complete encoded characters within a byte offset and length.
Parameters:
$string(string)$start(int)$length(?int), defaultnull, optional$encoding(?string), defaultnull, optional
Returns: string
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_strcut is implemented in the compiler, see the internals page.