php Programming Glossary: total_year
PHP calculate person's current age http://stackoverflow.com/questions/3380990/php-calculate-persons-current-age 1 year comparison 2010 1980 write 30 let it be total_year variable 2 compare the months if birth date month is bigger.. like 12 in birth and 01 current do minus one year from total_year variable 30 1 29 . If do minus happened finish the calculations.. go the next 3 step . 3 else if birth month current month total_year total_year 30 4 else if birth month current month total_year..
|