function kintVariableData::_strlen

1 call to kintVariableData::_strlen()
kintParser::_parse_string in kint/kint/inc/kintParser.class.php

File

kint/kint/inc/kintVariableData.class.php, line 83

Class

kintVariableData

Code

protected static function _strlen($string, $encoding = null) {
    if (function_exists('mb_strlen')) {
        $encoding or $encoding = self::_detectEncoding($string);
        return mb_strlen($string, $encoding);
    }
    else {
        return strlen($string);
    }
}