note 36334 deleted from function.mktime by sniper

From: Date: Tue, 04 Nov 2003 13:09:40 +0000
Subject: note 36334 deleted from function.mktime by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59861@lists.php.net to get a copy of this message
Note Submitter: fred_sa@fredjones.dyndns.org ---- The easiest way by far to get a person's age. //$bdate is the timestamp of the birthdate $born = date ("Ymd", $bdate); $age = floor((date(Ymd) - $born)/10000); Two lines to find a person's age. Not bad at all. (If getting $bdate from mysql just use UNIX_TIMESTAMP(bdate)

« previous php.notes (#59861) next »