Location: PHPKode > scripts > K-Pregs > k-pregs/examples/discover.php
<?php

require("../kpregs.php");

/*
Check if a string is a valid Discover credit card code
*/

// Checking a single credit card code
$code = "601111111111111111";
if (kpreg_is_valid_discover_cc_code($code))
 echo("Valid!");
else
 echo("Invalid!");

?>
Return current item: K-Pregs