src/lib/IBAN.php
public function validate(&$error = null)
    {
        if (!$this->isCountryCodeValid()) {
            $error = 'IBAN country code not valid or not supported';
        } elseif (!$this->isLengthValid()) {
            $error = 'IBAN length is invalid';
        } elseif (!$this->isFormatValid()) {
            $error = 'IBAN format is invalid';
        } elseif (!$this->isChecksumValid()) {
            $error = 'IBAN checksum is invalid';
        } else {
            $error = '';
            return true;
        }

        return false;
    }
public function validate(&$error = null)
    {
        if (!$this->isCountryCodeValid()) {
            $error = 'IBAN country code not valid or not supported';
        } elseif (!$this->isLengthValid()) {
            $error = 'IBAN length is invalid';
        } elseif (!$this->isFormatValid()) {
            $error = 'IBAN format is invalid';
        } elseif (!$this->isChecksumValid()) {
            $error = 'IBAN checksum is invalid';
        } else {
            $error = '';
            return true;
        }

        return false;
    }
public function validate ( & $ error = null ) { if ( ! $ this -> isCountryCodeValid ( ) ) { $ error = 'IBAN country code not valid or not supported' ; } elseif ( ! $ this -> isLengthValid ( ) ) { $ error = 'IBAN length is invalid' ; } elseif ( ! $ this -> isFormatValid ( ) ) { $ error = 'IBAN format is invalid' ; } elseif ( ! $ this -> isChecksumValid ( ) ) { $ error = 'IBAN checksum is invalid' ; } else { $ error = '' ; return true ; } return false ; }
Validates the supplied IBAN and provides passthrough failure message when validation fails

@param null $error passthrough variable

@return bool
Validates the supplied IBAN and provides passthrough failure message when validation fails