Skip to content
Advertisement

Increase days to php current Date()

How do I add a certain number of days to the current date in PHP?

I already got the current date with:

JavaScript

Just need to add x number of days to it

Advertisement

Answer

php supports c style date functions. You can add or substract date-periods with English-language style phrases via the strtotime function. examples…

JavaScript

or

JavaScript

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement