yano3nora
7/1/2017 - 9:17 AM

[php: Calc age by birthday] src = http://qiita.com/arthur87/items/aa3355f218d4c9a90436 #php

[php: Calc age by birthday] src = http://qiita.com/arthur87/items/aa3355f218d4c9a90436 #php

// calc age 
$today = date("Ymd");
$birth = "19800901";
$age = floor(($today-$birth)/10000);