📜  php 从 dob 获取年龄 - PHP 代码示例

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

代码示例1
Simple method for calculating Age from dob: $_age = floor((time() - strtotime('1986-09-16')) / 31556926); 31556926 is the number of seconds in a year.