Date modifyThis is another way to add or subtract a date object with different month , days ,year , hour , minutes , sec etc.
This function is supported by PHP 5.2 or higher versions. So if you are running 5.2 version the you can use modify function as add or subtract functions are supported by PHP 5.3 and higher only.
The output is here
We can change the highlighted line like this
Output of this change is here
This article is written by plus2net.com team.