Property | Type | Description | |
---|---|---|---|
$patterns | array | Regular expression patterns per country code. |
Method | Description | |
---|---|---|
isValidCountryCode ( string $vat ) : boolean | Returns true if value is valid country code, false otherwise. | |
validate ( mixed $vat ) : boolean | validate Checks if $vat is a valid, European Union VAT number. |
public static isValidCountryCode ( string $vat ) : boolean | ||
$vat | string | |
return | boolean |
public static array $patterns | ||
return | array |