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
Explain do you use composer? If yes, what benefits have you found in it?
How to concatenate two strings in php?
Tell me what should we do to be able to export data into an excel file?
How big is varchar max?
Can a trait extend a class php?
What are the three classes of errors that can occur in php?
Tell me are parent constructors called implicitly inside a class constructor?
Tell me what is the actually used php version?
What is php default argument?
What is difference between Method overriding and overloading in PHP?
What is Type hinting in PHP?
What is framework in php for beginners?
What are the two most common ways to start and finish a php block of code?
How php statement is different from php script?
How to delete cookie files on your computer?