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 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 70 This week: 1All time: 10,053 This week: 189Up
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: Not yet ranked
Week rank: 17817 in India India
Innovation award
Innovation award
Nominee: 1x

Details

AgeCalculator

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 README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:70
This week:1
All time:10,053
This week:189Up
For more information send a message to info at phpclasses dot org.