note 102236 deleted from function.date-diff by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: alessandro dot faustini at nixylab dot it 

----

In versions < 5.3.0 Why do not simply use this form for calculate the number of days ?

$today = strtotime("2011-02-03 00:00:00");
$myBirthDate = strtotime("1964-10-30 00:00:00");
printf("I'm %d days old.", round(abs($today-$myBirthDate)/60/60/24));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.