■■PHP问题,我有一个字符串"2005-10-19",表示日期,如何得到它的下一天?要求结果也是字符串"2005-10-20" $s=time()+24*60*60;echo Date("Y-m-d",$s); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $date = strtotime("2005-10-19");$date += 24 * 60 * 60;$date2 = date('Y-m-d', $date);echo $date2; $yrh=mktime(0,0,0,10,19+1,2005);$m=date("m",$yrh);$d=date("d",$yrh);$Y=date("Y",$yrh);echo $Y."-".$m."-".$d; $date = strtotime("2005-10-19");$date += 24 * 60 * 60;$date2 = date('Y-m-d', $date);echo $date2;---这个比较简单,嗯嗯 echo date("Y-m-d",strtotime("2005-10-19 +1 day")); <?phpecho strtotime ("now"), "\n";echo strtotime ("10 September 2000"), "\n";echo strtotime ("+1 day"), "\n";echo strtotime ("+1 week"), "\n";echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n";echo strtotime ("next Thursday"), "\n";echo strtotime ("last Monday"), "\n";?> 手册上的,呵! 问下列车时刻表数据该怎么设计? 建立一个链接,当用户点击时自动以demo用户登录 一张表对应两个php文件如何理解? 请教关于导入导出 这段代码在PHP CURL代码在命令模式下运行正常,但在游览器模式下不行 Apache在运行时,访问一个PHP文件是以什么身份来访问的? select 超链接 关于注册次数 刚刚完成的在线单词翻译的小工具,还剩编码问题没有解决,高手赐教.. 如何用php进行解压 解析XML的问题:如何获得换行的信息? 有没有edong代理的?
$date += 24 * 60 * 60;
$date2 = date('Y-m-d', $date);
echo $date2;
$m=date("m",$yrh);
$d=date("d",$yrh);
$Y=date("Y",$yrh);
echo $Y."-".$m."-".$d;
$date += 24 * 60 * 60;
$date2 = date('Y-m-d', $date);
echo $date2;
---
这个比较简单,嗯嗯
echo strtotime ("now"), "\n";
echo strtotime ("10 September 2000"), "\n";
echo strtotime ("+1 day"), "\n";
echo strtotime ("+1 week"), "\n";
echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime ("next Thursday"), "\n";
echo strtotime ("last Monday"), "\n";
?>
手册上的,呵!