public static function money($val, $country = 'BR')
    {
        switch ($country) {
            case 'US':
                $arr = ['US$', ',', '.'];
                break;
            case 'BR':
            default:
                $arr = ['R$', '.', ','];
        }
        return ($arr[0] . ' ' . number_format($val, 2, $arr[2], $arr[1]));
    }