public static function to($str, $upperCaseFirst = true)
    {
        $str = strtr(ucwords(strtr($str, ['_' => ' ', '.' => '_ ', '\\' => '_ '])), [' ' => '']);

        if ($upperCaseFirst === false) {
            $str = lcfirst($str);
        }

        return $str;
    }
public static function to($str, $upperCaseFirst = true)
    {
        $str = strtr(ucwords(strtr($str, ['_' => ' ', '.' => '_ ', '\\' => '_ '])), [' ' => '']);

        if ($upperCaseFirst === false) {
            $str = lcfirst($str);
        }

        return $str;
    }
public static function to ( $ str , $ upperCaseFirst = true ) { $ str = strtr ( ucwords ( strtr ( $ str , [ '_' => ' ' , '.' => '_ ' , '\\' => '_ ' ] ) ) , [ ' ' => '' ] ) ; if ( $ upperCaseFirst === false ) { $ str = lcfirst ( $ str ) ; } return $ str ; }
Converts a string from underscore to camel-case notation

@param string $str
@param bool $upperCaseFirst
@return string
Converts a string from underscore to camel - case notation