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

Is php a web server?

972


What does csrf token mismatch mean?

1136


Is server side a session?

923


What is curl php?

1000


What are php functions?

1022


Which is the best php framework for a beginner?

987


How can you submit a form without a submit button?

949


How to call a php function from html button?

1062


How can we change the maximum size of the files to be uploaded?

1020


How do I stop a php script?

952


How to convert numbers to strings in php?

996


Difference between mysql_connect and mysql_pconnect?

946


Which array function checks if the particular key exists in the array?

882


Explain what is meant by pear in php?

986


Php code to find whether a number armstrong or not?

954