Count the number of UTF-8 code points in string, substituting U+FFFD for
invalid sequences
function fb_utf8_strlen(
string $input,
): int;
Parameters
string $input
- The string.
Returns
int
- - Returns the number of code points interpreting string as
UTF-8.