|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-29 09:03 UTC] jah@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
<?php $DAYS = 3600 * 24; $fdom = mktime( 0, 0, 0, 10, 8, 2000 ); for ($i = 1; $i < 30; $i++) echo date( "d.m.Y", $fdom + ($i - 1) * $DAYS ) . " "; ?> This script should list the day number from October, 08th, through the next 30 days. It repeats the 29th day of October. I don't know why. If the 3rd line is changed to $fdom = mktime( 0, 0, 0, 10, 08, 2000 ); date counting starts on September 30th, so the leading 0 of "08" is misinterpreted as a standalone zero.