: squint :
The problem is you are using non-parsable strings:
PHP Code:
$newexpDate = date('Y-m-d', strtotime('$extenddate', $cur_expDate));
$cur_expDate also won't work. strtotime signature is
int strtotime(string, [int]);, so $cur_expDate will be a string causing it to dereference *possibly* from 0 (string conversion to numbers will be adhered to, so in this case it'll likely be 2013 which is only like 33 minutes past epoch).
PHP Code:
$iMonths = 2;
$iSetDate = strtotime('2013-02-25');
print date('F j Y h:i:s', strtotime("+$iMonths month", $iSetDate));
Will do what you need.
DateTime is also an option.
PHP Code:
$iMonths = 2;
$dt = new DateTime('2013-02-25');
$dt->add(new DateInterval("P$iMonthsM"));
print $dt->format('F j Y h:i:s');