Write a PHP script to increment date by one month.
Sample date : 2012-12-21
<?php $dt = strtotime("2012-12-21"); echo date("Y-m-d", strtotime("+1 month", $dt))."\n"; ?>
Sample Output:
2013-01-21
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer