Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getAge($day,$mon,$year){
- $now= mktime(0, 0, 0, date('m'), date('d'), date('Y'));
- $dateofbirth= mktime(0, 0, 0, $mon, $day, $year);
- return $age = intval(($now- $dateofbirth) / (3600 * 24 * 365));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment