运维网's Archiver
论坛
›
php
› php计算二个日期差
恒晖瑶
发表于 2017-3-27 12:13:22
php计算二个日期差
<?php
$days = abs(strtotime('2012-2-4') - strtotime(date("Y-m-d")))/86400;
echo 50/$days;
?>
页:
[1]
查看完整版本:
php计算二个日期差