Skip to content
Advertisement

PHP string date + 1 day equals?

I have a date which is saved in a regular string.

// format = DD-MM-YYYY    
$date = "10-12-2011";

How can I get the date-string +1 day so: 11-12-2011?

Advertisement

Answer

Similar post

$date = date('d-m-Y', strtotime("+1 day", strtotime("10-12-2011")));
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement