| : | Javascript | : | PHP Index | : | MySQL | : |
| : | Source | : | : | Explanation | : | : | Example | : | : | Todo | : | : | Feedback | : |
Fill in a number below to check if it's a valid (dutch) bank account number.
(Vul hieronder een nummer in om te controleren of het een geldig (nederlands) rekeningnummer is)
Unfortunately, the server on which this website is hosted doesn't support the PHP version necessary for Zend Framework, so i won't be able to give a live
demonstration of the Excudo_Validate_Elfproef class. But here is a code example anyways:
<?php
// this file contains the Excudo_Validate_Elfproef class
require_once "Excudo/Validate/Elfproef.php";
$numbers = array(
"11",
"111111110",
"111111111",
);
$Validator = new Excudo_Validate_Elfproef();
foreach ($numbers AS $number)
{
$bool = $Validator->isValid(($number);
if ($bool)
{
echo "<span style=\"color: green; font-weight: bold;\">".$number."</span> is a valid dutch bank account number<br>\n";
}
else
{
echo "<span style=\"color: red;\">Error:</span> ".$number." is NOT a valid dutch bank account number<br>\n";
}
}
?>
This will produce the following output: