I want to get future date after specific date
for this i use strtotime() function but it not work for me
then I use following code
$d1='2012-11-08';
$d2=date($d1, strtotime('+3 days'));
echo $d2;
output is
2012-11-08
2012-11-08
not
2012-11-11
but output is not 2012-11-11
output is 2012-11-08
i can’t solve this what is error i do and how i solve this?
Try using
date_addhttp://www.php.net/manual/en/datetime.add.php
If you’re not running PHP 5.3, this should work: