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): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/mb_strcut.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_strcut is implemented in the compiler, see the internals page.