`
webcode
  • 浏览: 5941119 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

php计算二个日期差

 
阅读更多
<?php
$days = abs(strtotime('2012-2-4') - strtotime(date("Y-m-d")))/86400;
echo 50/$days;
?>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics