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
Is php a web server?
What does csrf token mismatch mean?
Is server side a session?
What is curl php?
What are php functions?
Which is the best php framework for a beginner?
How can you submit a form without a submit button?
How to call a php function from html button?
How can we change the maximum size of the files to be uploaded?
How do I stop a php script?
How to convert numbers to strings in php?
Difference between mysql_connect and mysql_pconnect?
Which array function checks if the particular key exists in the array?
Explain what is meant by pear in php?
Php code to find whether a number armstrong or not?