联系QQ:884563046点击这里给我发消息

php输出某几日的相同间隔时间的算法

<?php<?php$begin = “2019-10-22”;$end = “2019-10-25”;$begintime = strtotime($begin);$endtime = strtotime($end);for ($start = $begintime; $start <= $endtime; $start += 24 * 3600) {   echo  $date= date(“Y-m-d”, $start);      $start1 = strtotime(date(“Y-m-d 08:00:00”));$end1  = strtotime(date(“Y-m-d 12:00:00”));  for($time1 = $start1; $time1 <= $end1; $time1 = $time1 + 180 * 60){echo ‘<br>’;echo ‘<br>’;    echo $date1 = date(“H:i:s”,  $time1); echo ‘<a href=”seat.php?id=’.$rows[‘Movie_id’].’&time=’.$date1.'”> <img
src=”images/order.png”></a>’; }       echo ‘<br>’;echo ‘<br>’;}?>

微信(不常用)和QQ同号: 884563046点击这里给我发消息

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注