php计算二个日期差

来源:互联网 发布:网络安全工程师认证 编辑:程序博客网 时间:2024/04/28 07:52
<?php$days = abs(strtotime('2012-2-4') - strtotime(date("Y-m-d")))/86400;echo 50/$days;?>

原创粉丝点击