By - lmypersonPosted on 2025年7月11日Posted in 工作php从身份证获取出生日期方法(兼容15位与18位身份证号)$birthday = strlen($card)==15 ? ('19' . substr($card, 6, 6)) : substr($card, 6, 8); echo $birthday 0 0