Posted inTech Info
How to Calculate Time Difference in PHP
<?php $start = date_create('1989-04-01'); $end = date_create(); // Current time and date $diff = date_diff( $start, $end ); echo 'The difference is '; echo $diff->y . ' years, '; echo…