PHP Classes

PHP Age Calculator: Calculate the age of a person with the birth date

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 104 All time: 9,745 This week: 206Up
Version License PHP version Categories
age-calculator 1.0Freeware7PHP 5, Time and Date
Description 

Author

This package can calculate the age of a person with the birth date.

It can take as parameter a given birth date to perform the calculation.

The class returns the number of years that passed since the given date until the current date.

Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 9 packages by
Country: Cuba Cuba
Age: 31
All time rank: 30508 in Cuba Cuba
Week rank: 200 Up2 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
include 'Age.php';
$obj=new AgeCalculator();
echo
$obj->Age('1993/07/16');
?>


  Files folder image Files (2)  
File Role Description
Plain text file Age.php Class Main Class
Accessible without login Plain text file example.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:104
This week:0
All time:9,745
This week:206Up