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
What is traits? How it is used in php?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?
Is php a case sensitive language?
What percentage of websites use php?
What does the function get_magic_quotes_gpc() means?
What is the use of $_request variable?
How long is session timeout?
What is trim codeigniter?
How do I stop a php script?
What is php how it works?
what is constructor
What is the use of anonymous function in php?
What are the popular content management systems (cms) in php?
How to uploaded files to a table?
Tell me how to execute an sql query? How to fetch its result?