I have this to get 1st day of current month
$_SERVER['dataInicio'] = date('Y') . "-" . date('m') . "-" . "1";
I need something similar to get 1st day of NEXT month
解决方案
This seems like a duplicate or similar post to this for the next month
but for the next month something like this if you want to use strtotime
date("m/l/Y", strtotime(date('m', strtotime('+1 month')).'/01/'.date('Y').' 00:00:00'));
this will return
12/Saturday/2012 if you want just the days name just set the date format to l (lower case L)
date("l", strtotime(date('m', strtotime('+1 month')).'/01/'.date('Y').' 00:00:00'));
or this