Posted By

jrobinsonc on 04/21/11


Tagged

AGE


Versions (?)

Script para calcular la edad


 / Published in: PHP
 

  1. $birth_date = strtotime("1985-06-12");
  2.  
  3. printf("Tengo %d años de edad.", round(abs(time() - $birth_date)/60/60/24/365));

Report this snippet  

You need to login to post a comment.