Answers for "calcul age php datetime"

PHP
0

calcul age php datetime

function get_age( $date ) { 
    $age = date('Y') - $date; 
   if (date('md') < date('md', strtotime($date))) { 
       return $age - 1; 
   } 
   return $age; 
}
Posted by: Guest on June-10-2020

Browse Popular Code Answers by Language