How to calculate age from dob in PHP?

Posted by Prem Tiwari | Updated on

In this answer, I have shared how to calculate age from dob in PHP programming language. Calculate age from date of birth using PHP

Calculate age from date of birth using PHP

Copy the below PHP program and change the $birthDate variable value to your own dob and calculate your age.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers