高分求php时间处理的问题 $d=date("Y-m-d H:i:s",strtotime("30 day")); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $time = time()+ 30*24*3600; echo date("Y-m-d H:i:s",$time);不知道有没有问题 xuzuning(唠叨) 谢谢再搞清楚一个问题就结贴2005-04-16 17:48:192005-04-06 17:48:19我现在要得到它们之间的天数差怎么办 <?$t1="2005-04-16 17:48:19";$t2="2005-04-06 17:48:19";$d1=strtotime($t1);$d2=strtotime($t2);$dc=date("d",$d1)-date("d",$d2); //天数差echo $dc;?> $t1="2005-04-16 17:48:19";$t2="2005-04-06 17:48:19";$d1=strtotime($t1);$d2=strtotime($t2);echo ($d1-$d2)/(24*60*60); 如何这样布局数据 $_SEVER如何使用 这个语句有错误吗? PHP读不出mysql数据啊~~~~~ 文件上传路径的问题.. php中,如何将mysql中的数据导入到csv中,并且中文不出现乱码,如能提供原码,不胜感激! php写些配置信息到文件中,如果修改其中某一行该如何来处理? 用php 求出a= ? 在线等!请进来看~~!先拜谢!! 谁用过PHPEd? 怎么样在Mysql中吧30的整数倍的数提取出来啊 大家关注一下分页函数的问题吧
echo date("Y-m-d H:i:s",$time);不知道有没有问题
再搞清楚一个问题就结贴
2005-04-16 17:48:19
2005-04-06 17:48:19
我现在要得到它们之间的天数差怎么办
$t2="2005-04-06 17:48:19";$d1=strtotime($t1);
$d2=strtotime($t2);$dc=date("d",$d1)-date("d",$d2); //天数差echo $dc;?>
$t2="2005-04-06 17:48:19";$d1=strtotime($t1);
$d2=strtotime($t2);echo ($d1-$d2)/(24*60*60);