メモです。
date('Y/m/d'); //今日 "2023/03/24"
date('Y/m/d', strtotime('first day of this month')); //今月1日 "2023/03/01"
date('Y/m/d', strtotime('first day of next month')); //来月1日 "2023/04/01"
date('Y/m/d', strtotime('last day of previous month')); //先月末日 "2023/02/28"
参考: