-1

I want to create a php function that gets the current date and creates a unix timestamp for next day with time 00:00:00

Example:

Today = 03-09-2014 Tomorrow = 04-09-2014 00:00:00

I want to create the unix timestamp for Tomorrow (1409788800) but I want the function to do it for each day.

Anyone has done this before?

user1511766
  • 125
  • 1
  • 1
  • 9

1 Answers1

0

Set to +1 day, then set the time manually.

date('d-m-Y 00:00:00', strtotime('+1 day'));

EDIT:

Misread, plus scragar's comment is more accurate.

Flosculus
  • 6,880
  • 3
  • 18
  • 42