functiongetdays($day){$firstday=date('Y-m-01',strtotime($day));$lastday=date('Y-m-d',strtotime("$firstday+1month-1day"));returnarray($firstday,$lastday);}print_r(getdays('-06-2'));
如果觉得《PHP获得指定日期所在月的第一天和最后一天》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2020-10-26 15:11:16
functiongetdays($day){$firstday=date('Y-m-01',strtotime($day));$lastday=date('Y-m-d',strtotime("$firstday+1month-1day"));returnarray($firstday,$lastday);}print_r(getdays('-06-2'));
如果觉得《PHP获得指定日期所在月的第一天和最后一天》对你有帮助,请点赞、收藏,并留下你的观点哦!
患者自幼患有痫病 近期发作较频 并见心神不安 失眠 健忘 舌淡白 脉滑。治疗应选
2024-07-28
成都棕南医院:专业治疗失眠症的医院讲解失眠是因为什么原因造成的?
2024-07-28