Skip to content

PHP code snippet – How to add extra days from a date ?

// PHP program to add days to $Date 
// Declare a date 
$date = "2019-05-10"; 
// Add days to date and display it 
echo date('Y-m-d', strtotime($date. ' + 10 days')); 
See also  PHP code snippet - How to redirect back to admin page if user is not authenticated in laravel based on the guard?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.