/ Published in: PHP
Calculate current age in years from a given birthdate.
Expand |
Embed | Plain Text
function age ( $a_certain_date ) //returns years since $a_certain_date (format: YYYY/MM/DD) { if ( $day_diff < 0 || $month_diff < 0 ) $year_diff--; return $year_diff; }
You need to login to post a comment.
