I just found a little piece of code created one fine morning with a function that allows you to calculate someone’s age based on their date of birth :

function age($jour, $mois, $annee)
{
     $age = (date('Y') - $annee);
     if( ($mois - date('m')) > 0 )
     {
          $age = ($age - 1);
     }
     if( ($mois - date('m')) == 0 && ($jour - date('d')) > 0 )
     {
          $age = ($age - 1);
     }
     return $age;
}

If this has helped or inspired you, feel free to say hello, it’s always nice to hear from you!