Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check credit card expiration

$expires = DateTime::createFromFormat('my', $_POST['expMonth'].$_POST['expYear']);
$now     = new DateTime();

if ($expires < $now) {
    echo 'Expired!';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #credit #card #expiration
ADD COMMENT
Topic
Name
4+1 =