mb_strlen()
function mb_strlen(string $string, string $encoding = null): int
Returns the character count of a string in the requested encoding.
Parameters:
$string(string)$encoding(string), defaultnull, optional
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/mb_strlen.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how mb_strlen is implemented in the compiler, see the internals page.