Below are revisions for this snippet.

Calculate Age





Syndication

Revision Revison 1
With this function you can calculate the age of a person

Example:
echo "Age is: " . age("1984-07-05");

Result will be (23 Feb 2005) = "Age is: 20"