wordToNumbers($identificatie); return $controle == $this->getCheckDigits($nummer); } public function getRekeningNummer($iban) { return substr(str_replace(" ", "", $iban), 8); } public function getBank($iban) { return substr(str_replace(" ", "", $iban), 4, 4); } public function getLand($iban) { return substr(str_replace(" ", "", $iban), 0, 2); } public function getIBAN($rekeningnr) { $landcode = "NL"; // NL in vertaling $landnumber = $this->wordToNumbers($landcode); $bankcode = "INFO"; $banknumber = $this->wordToNumbers($bankcode); $rekeningnr = str_pad($rekeningnr, 10, 0, STR_PAD_LEFT); $bignum = $banknumber . $rekeningnr . $landnumber . "00"; $checkdigits = $this->getCheckDigits($bignum); $rekeningnrarr = str_split($rekeningnr, 4); return $landcode.$checkdigits." ".$bankcode." ".$rekeningnrarr[0]." ".$rekeningnrarr[1]." ".$rekeningnrarr[2]; } }