如何从今天的PHP日期+1获得下个月

for e.g. date is 21/01/2015 I want to get 22/02/2015(next month with the increment in date from 21 to 22)

how cam I achieve that? I am using strtotime('+1 month'); output:- 21/02/2015.. and this will only gives me next month with present date i.e 21

Well, I guess

strtotime('-1 day', strtotime('-1 month'))

Or, if you actually need the next month, not the previous one, then

strtotime('+1 day', strtotime('+1 month'))

It will have interesting artifacts if the corresponding day does not exist (like if you call it on January, 31st), but I guess it is not clear what to do in this case anyway.

Try below :-

$end_date = mktime(0,0,0,date('m')+1,date('d')+1,date('Y'));

echo date('Y-m-d', $end_date);

i will send you

$day = date('d');
$month = date('m')+1;
$year = date('Y');
$nextDay = $day+1;
$nextMonth = $month + 1; 
echo $nextDate = $nextDay.'/'.$nextMonth.'/'.$year;