Inflection.php
private function _leftStr($n, $txt)
    {
        $rv = '';
        for ($i = 0; $i < $n && $i < mb_strlen($txt, 'UTF-8'); $i++) {
            $rv .= mb_substr($txt, $i, 1, 'UTF-8');
        }

        return $rv;
    }
private function _leftStr($n, $txt)
    {
        $rv = '';
        for ($i = 0; $i < $n && $i < mb_strlen($txt, 'UTF-8'); $i++) {
            $rv .= mb_substr($txt, $i, 1, 'UTF-8');
        }

        return $rv;
    }
Vrati levou cast retezce od urcite pozice (bez teto pozice)

@param int $n Index
@param string $txt Vstupni text

@return string Oriznuty retezec