$v) { #foreach is good. It figures out how many echo "\$today[$k]: $v.\n
"; #items are in an array, and does the right } #thing accoordingly. Print and echo do exactly #the same thing in this script. //$sob = mktime(0, 0, 0, 3, 8, 2001); #returns the seconds. lOoks like "984063600" //echo "
mktime (my date): ". $dt; #returns an array like the one for $today ?>
$v) { echo "\$dt[$k]: $v.\n
"; } /* Sample using thurs, 10:00:00am, 3/8/01: $dt[seconds]: 0. $dt[minutes]: 0. $dt[hours]: 10. $dt[mday]: 8. $dt[wday]: 4. $dt[mon]: 3. $dt[year]: 2001. $dt[yday]: 66. $dt[weekday]: Thursday. $dt[month]: March. $dt[0]: 984063600. */ ?> Heres the goods: