(PHP 5 >= 5.1.0RC1)
object
DateTime object.
modify
String in a relative format accepted by strtotime().
Returns NULL on success or FALSE on failure.
Example 1. A date_modify() example
<?php$date = new DateTime("2006-12-12");$date->modify("+1 day");echo $date->format("Y-m-d");?>
The above example will output:
2006-12-13
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.