作者: 董德多

php从身份证获取出生日期方法(兼容15位与18位身份证号): $birthday = strlen($card)==15 ? (19 . substr($card, 6, 6)) : substr($card, 6, 8);echo $birthday php从身份证获取性别方法: $sex = substr($card, (strlen($c

Read More

php内置time()函数用来获取当前unix时间戳。 time 返回当前的 Unix 时间戳 (PHP 4, PHP 5, PHP 7) 使用说明: int time ( void ) 返回自从 Unix 纪元(格林威治时间 1970 年 1 月 1 日 00:00:00)到当前时间的

Read More