Calculate the number of days between two dates in PHPthis [2006-10-17]

Not exactly wizard code, but why not publish it anyway... I googled for an example like this myself but had trouble finding a good match. Maybe it was more a question of finding the right keywords to search for.