|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-03-25 10:21 UTC] jah@php.net
[2001-03-26 04:22 UTC] leonardo at pcnet dot ro
[2001-04-01 10:50 UTC] leonardo at pcnet dot ro
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
I made a script that loops through a week ahead (starting from 19 of March 2001 and includind the week of 19-25 of March 2001) and reads the data from a database according to the date. I've noticed the '2001-03-24' is returned twice using the following script: for($i = 0; $i < 6; $i++) { $next_date = date("Y-m-d", mktime(0,0,0,date("m"),date("d")+$i,date("Y"))); print $next_date; } The script returns the same date with PHP 4.0.4 on IIS and Apache for Windows.