uot;Ryan A" <[EMAIL PROTECTED]>
To: "php"
Sent: Tuesday, May 03, 2005 3:41 PM
Subject: [PHP] age function
> Hey,
> Anybody have an age function where i can pass a date object and get back
an
> int?
>
> eg:
> $years_old=get_years("1979-12-07");
>
On Tuesday 03 May 2005 22:41, Ryan A wrote:
> Hey,
> Anybody have an age function where i can pass a date object and get back an
> int?
>
> eg:
> $years_old=get_years("1979-12-07");
Use time and mktime.
$birthday = ""1979-12-07";
$birdthday_time = mktime(0, 0, 0, substr($birthday, 5, 2), substr
Hey,
Anybody have an age function where i can pass a date object and get back an
int?
eg:
$years_old=get_years("1979-12-07");
Thanks,
Ryan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 5/2/2005
--
PHP Gener
3 matches
Mail list logo