Created
June 10, 2010 13:03
-
-
Save jonathanmaron/432958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use \Zend\Validator\VATIN; | |
// syntax only check | |
$validator = new VATIN(); | |
$validator->isValid('XX0000000000'); | |
// syntax and deep check (uses VATIN validation SOAP service by European Commission) | |
$validator = new VATIN(); | |
$validator->setDeepCheck(true); | |
$validator->isValid('XX0000000000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment