📜  php 检查信用卡到期时间 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:35.148000             🧑  作者: Mango

代码示例2
$expires =  date_format( \DateTime::createFromFormat('ym', $cc_expiration),"ym");

$now =  date_format(new \DateTime(),"ym");

if ($expires < $now) {
    return 'Expired!';
}