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

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

/*
Check if a string is a valid Diners Club credit card code
*/

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

?>
Return current item: K-Pregs