Bug #11762 Updated: bad example

From: Date: Thu, 28 Jun 2001 21:21:05 +0000
Subject: Bug #11762 Updated: bad example
Groups: php.dev 
Request: Send a blank email to php-dev+get-58378@lists.php.net to get a copy of this message
ID: 11762 Updated by: danbeck Reported By: Xuefer@21cn.com Status: Bogus Bug Type: Documentation problem Operating system: PHP Version: 4.0.5 Assigned To: Comments: I believe that the PDF and CHM version of the module always lag behind due to the amount of work it takes to package them up. If you are ever in doubt, please check the online html manual first. You can visit it directly at: http://php.net/manual/ Previous Comments: --------------------------------------------------------------------------- [2001-06-28 14:32:55] Xuefer@21cn.com thx for replying, thx btw, in http://www.php.net/docs.php doucument list file size? may not need if file is small enough file size for compare and decide whether to download ? why not show an document last update date? or document version will be better :P just suggestion, may not post as a reply here --------------------------------------------------------------------------- [2001-06-28 11:29:28] sniper@php.net Not necessarily. Latest should always be the online manual. And the VERY latest is in CVS. :) --------------------------------------------------------------------------- [2001-06-28 08:23:10] Xuefer@21cn.com I think i've downloaded the lastest version of chm file. I do also download it again. isn't the CHM version of document the newest document ? --------------------------------------------------------------------------- [2001-06-27 23:03:36] sniper@php.net You must be looking into old manual or something since the example I see on the getdate() manual page has perfect, working example in it. --------------------------------------------------------------------------- [2001-06-27 22:34:30] Xuefer@21cn.com PHP manual getdate (PHP 3, PHP 4 ) getdate -- Get date/time information Description array getdate ([int timestamp]) ............ Example 1. getdate() example $today = getdate(); $month = $today[month]; $mday = $today[mday]; $year = $today[year]; echo "$month $mday, $year"; --- -> $mday = $today[mday]; warnning: Use of undefined constant mday - assumed 'mday' although a undefined constant will be assumed as a string, it's still a bad usage of this auto conversion. php manual writers shouldn't make a bad guide for php learners thx --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11762&edit=2

« previous php.dev (#58378) next »