PHP Classes

PHP Age Calculator Class: Calculate the years since a given date

Recommend this page to a friend!
  Info   View files Documentation   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-05-08 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 64 Not yet ranked
Version License PHP version Categories
agecalculator 1.0The PHP License5PHP 5, Time and Date
Description Author

This simple class can calculate the years since a given date.

It can take a date in ISO format and compute the difference between today's date and the input date.

The class returns a JSON encoded array that contains the difference between date days in years, months, and days.

Picture of Mr. Dharmendra Kumar
  Performance   Level  
Name: Mr. Dharmendra Kumar <contact>
Classes: 8 packages by
Country: India India
Age: ???
All time rank: 3393226 in India India
Week rank: 485 Up38 in India India Up
Innovation award
Innovation award
Nominee: 1x



AgeCalculator is a simple PHP class. It can calculate age and return JSON format result.

require('AgeCalculator.php'); $obj=new AgeCalculator(); $dob='05-06-2000'; echo $obj->show_my_age();

  Files folder image Files  
File Role Description
Plain text file AgeCalculator.php Class Class source
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads  
This week:0
For more information send a message to info at phpclasses dot org.