function Mbstring::mb_strlen
2 calls to Mbstring::mb_strlen()
- Mbstring::mb_strrpos in vendor/
symfony/ polyfill-mbstring/ Mbstring.php - Mbstring::mb_str_pad in vendor/
symfony/ polyfill-mbstring/ Mbstring.php
File
-
vendor/
symfony/ polyfill-mbstring/ Mbstring.php, line 515
Class
- Mbstring
- Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
Namespace
Symfony\Polyfill\MbstringCode
public static function mb_strlen($s, $encoding = null) {
$encoding = self::getEncoding($encoding);
if ('CP850' === $encoding || 'ASCII' === $encoding) {
return \strlen($s);
}
return @iconv_strlen($s, $encoding);
}