[FX.php List] Even stranger date math...

Bob Patin bob at patin.com
Sun Sep 30 14:02:26 MDT 2007


OK, so I decided to use a WHILE loop, and the results are just as  
strange:

<?php

$d1 = "10/28/2007";
$thetime = strtotime($d1);

$x = 2;
while ($x < 43){
	$thetime = $thetime + 86400;
	$d[$x] = date('m/d/Y',$thetime);
	echo $d[$x]."<br>";
	$x++;
}


?>

Check it out... why does this not work right?


More information about the FX.php_List mailing list