|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-04-14 18:19 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 11 13:00:01 2026 UTC |
the function date(), when passes the options: z - day of year, and S - add appropriate terminator for number, displays incorrectly. This script adequately conveys the difficulty: <? $today = date("zS"); PRINT "<CENTER>Today is the <STRONG>$today</STRONG> day of the year.</CENTER><BR>"; ?> Today(April 14, 1999), for example, it displays: Today is the 103th day of the year. This happens on the 3.0.5 RPM, and also on a compiled 3.0.7, configured with ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-apache=/usr/include --enable-track-vars More or less straight out of the documentation.