Maison >développement back-end >tutoriel php >帮忙看一下这段代码那里有问题.
<?php$date1=date('Y-m-d ',"1367769600"); for ($date1=1;$date1 <=9; $date1++){}$date2=date('H-i-s',"-2211742800")for ($date2=1;$date2 <=60; $date2++){ } echo $date1." ."$date2?>
$date = date('Y-m-d H:i:00'); for($day=0; $day<8; $day++) for($second=0; $second<60; $second++) echo date('Y-m-d H:i:s', strtotime("+$day day +$second second $date")) . '<br>';
高手啊 豁然开朗
$date = date('Y-m-d H:i:00'); for($day=0; $day<8; $day++) for($second=0; $second<60; $second++) echo date('Y-m-d H:i:s', strtotime("+$day day +$second second $date")) . '<br>';