Text.php
public static function formatTvaIntra($value)
    {
        $value = self::toUpper(trim(str_replace(' ', '', $value)));
        return preg_replace('/^([A-Z]{2})([0-9]{2})([0-9]{3})([0-9]{3})([0-9]{3})$/', '$1 $2 $3 $4 $5', $value);
    }
public static function formatTvaIntra($value)
    {
        $value = self::toUpper(trim(str_replace(' ', '', $value)));
        return preg_replace('/^([A-Z]{2})([0-9]{2})([0-9]{3})([0-9]{3})([0-9]{3})$/', '$1 $2 $3 $4 $5', $value);
    }
public static function formatTvaIntra ( $ value ) { $ value = self :: toUpper ( trim ( str_replace ( ' ' , '' , $ value ) ) ) ; return preg_replace ( '/^([A-Z]{2})([0-9]{2})([0-9]{3})([0-9]{3})([0-9]{3})$/' , '$1 $2 $3 $4 $5' , $ value ) ; }
Intracom TVA formatting
@param string $value
@return string
Intracom TVA formatting