Php 为下个月的特定日期生成时间戳

Php 为下个月的特定日期生成时间戳,php,time,timestamp,Php,Time,Timestamp,我需要为下个月的确切日期生成时间戳 我想自动生成下个月10号的时间戳 我试着和strotime一起玩,但没能解决 谢谢,试试这个: echo date('Y-m-d', strtotime(date('Y-m-10'). '+1 month')); 真是一种享受!非常感谢:)@DavidMacaulay如果这个答案解决了你的问题,你可以!

我需要为下个月的确切日期生成时间戳

我想自动生成下个月10号的时间戳

我试着和strotime一起玩,但没能解决

谢谢,

试试这个:

echo date('Y-m-d', strtotime(date('Y-m-10'). '+1 month'));

真是一种享受!非常感谢:)@DavidMacaulay如果这个答案解决了你的问题,你可以!