Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to create the PHP Script to Calculate the Age Using the
Inputs Of our Birth date and the Current date?

Answer Posted / nirav desai

<?php
$a = date('Y',strtotime('1985-10-15'));
$b = date('Y');
$c = $b-$a;
echo "Current age is:: ".$c." Years .";
?>

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we embedded directly PHP code into XHTML document? State Whether True or False?

1753


Is polymorphism inherited?

967


How can cross site request forgery csrf be prevented?

902


What is session expiry?

920


Why do we use htaccess and where?

973


How do I expire a php session after 30 minutes?

1023


Name some of the constants in php and their purpose.

948


When is a conditional statement ended with endif?

930


What is difference between post and put in rest?

970


How do you pass a variable by value in php?

962


Php code to find whether a number armstrong or not?

934


What is session php?

915


How to get number of days between two given dates using PHP?

876


What the use of var_dump()?

1007


What is a helper function?

920