Find age thought php code

No comments


This is one of the simple task in php.

<?php





$birthdate='1989-07-07';
echo date_diff(date_create($birthdate), date_create('today'))->y;

?>

No comments :

Post a Comment