Simple PHP class to check the validity of a VAT number from the European Union countries. Just include the class and call the function vat::check_vat($vat_number,$state_code). The state_code is the country 2 letter abbreviation (eg. GB, DE, AT etc.)
- Returns TRUE or FALSE answer related to the entered VAT number and STATE CODE
It is a very useful feature when you want to validate a corporate account.