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 namespace and use in php?
What is boolean in php?
Explain me what is the meaning of a persistent cookie?
Is php a middleware?
Explain me what are the 3 scope levels available in php and how would you define them?
How can you send http header to the client in php?
Which php framework is in demand?
How do I run a php script in windows?
What is $_ env in php?
what is benefit of magento?
How is it possible to set an infinite execution time for php script?
What is php used for?
How to track user logged out or not? When user is idle?
Are static variables final?
Is python similar to php?