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';
}
?>

4 comments:

  1. This blog is full of Innovative ideas.surely i will look into this insight.please add more information's like this soon.
    JAVA Training in Chennai
    JAVA Course in Chennai
    java class
    Hadoop Training in Chennai
    Selenium Training in Chennai

    ReplyDelete