Hello all,
I am looking for a perfect PHP age calculator which takes someones date of
birth as an argument and returns the person's age.
I went over several tutorials, help and newsgroups an found lots of
calculators, tried many times to make the perfect script but did not
find/make the perfect one.
Simple test:
if my birthdate is 07-07-2004 (dd-mm-yyyy) and today is 07-07-2005 then i
should be 1 year old
if my birthdate is 07-07-2004 (dd-mm-yyyy) and today is 06-07-2005 then i
should be 0 years old
Lots of scripts i've found did not pass this test succesfull, so if someone
can point me to the 'golden' script then i would be very thankfull!
Regards,
Marcel
I am looking for a perfect PHP age calculator which takes someones date of
birth as an argument and returns the person's age.
I went over several tutorials, help and newsgroups an found lots of
calculators, tried many times to make the perfect script but did not
find/make the perfect one.
Simple test:
if my birthdate is 07-07-2004 (dd-mm-yyyy) and today is 07-07-2005 then i
should be 1 year old
if my birthdate is 07-07-2004 (dd-mm-yyyy) and today is 06-07-2005 then i
should be 0 years old
Lots of scripts i've found did not pass this test succesfull, so if someone
can point me to the 'golden' script then i would be very thankfull!
Regards,
Marcel
Comment