<?php mb_strlen(string $string, ?string $encoding = null): int
<?php } if ($useMbString) { return mb_strlen($str, '8bit'); } return \strlen($str);