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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 73 This week: 1All time: 10,197 This week: 560Up
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: 3369223 in India India
Week rank: 411 Up26 in India India Up
Innovation award
Innovation award
Nominee: 1x

Documentation

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:73
This week:1
All time:10,197
This week:560Up