Wednesday, 5 March 2014

How to check expiry date of credit card by php

<?php $date = $_GET['card_expiry_date'];
$date=explode('/',$date);

if($date[0]<=12  && $date[1]>(date('Y')-1) ){
echo "true";
} else {
echo 'false';
}
?>

0 comments:

Post a Comment