Hallo,
Nebenbei: Die Lösung von fastix hat noch Syntaxfehler drin, es müsste wohl eher $d = ((int) ($timestamp/86400))*86400 heissen, oder?
Nö, fastix' Lösung ist syntaxmäßig richtig: $d = int($timestamp/86400)*86400;
Fatal error: Call to undefined function: int()
Gruß aus Berlin!
eddi