摘要: /** * 截取身份证年、月、日,通过与当前时间戳的比较计算年龄 * @param string $idcard 身份证 * @return int */ function getAgeByID($idcard) { // 过了这年的生日才算多了一周岁 if(empty($idcard)) retu 阅读全文
posted @ 2021-12-07 14:38 动灵 阅读(170) 评论(0) 推荐(0) 编辑