php 时间差计算

明天02:56与今天22:45相差多少小时,多少分钟

echo $time = strtotime("+ 1day", strtotime('02:56')) - strtotime('22:45');
echo "
";
echo floor($time / 3600).':'.($time % 3600 / 60);
原文地址:https://www.cnblogs.com/blue-t/p/15161008.html