mb_rtrim()
function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string
Removes Unicode whitespace or the specified characters from the end.
Parameters:
$string(string)$characters(?string), 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_rtrim.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_rtrim is implemented in the compiler, see the internals page.