protected static function prepStr($str, $countSymb = 255)
    {
        //$str = str_replace(['-', '_'], ['', ''], $str);
        $len = strlen($str);
        $len = $len > $countSymb ? $countSymb : $len;
        return substr($str, 0, $len);
    }
protected static function prepStr($str, $countSymb = 255)
    {
        //$str = str_replace(['-', '_'], ['', ''], $str);
        $len = strlen($str);
        $len = $len > $countSymb ? $countSymb : $len;
        return substr($str, 0, $len);
    }
protected static function prepStr ( $ str , $ countSymb = 255 ) { //$str = str_replace(['-', '_'], ['', ''], $str); $ len = strlen ( $ str ) ; $ len = $ len > $ countSymb ? $ countSymb : $ len ; return substr ( $ str , 0 , $ len ) ; }
Prepare fix string length
@param string $str Source string
@param int $countSymb Count symbol substring from begin
@return string
Prepare fix string length