Re: Bug #11762 Updated: bad example

From: Date: Thu, 28 Jun 2001 20:53:21 +0000
Subject: Re: Bug #11762 Updated: bad example
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335723@lists.php.net to get a copy of this message
Hello! CHM- files are currently a bit behind the state, but that will change. In the meantime, you can grab eighter another file-format, or grab a almost actual (max. 3-4 days old) CHM-manual at http://www.t0.or.at/~sunny/php/ . Hope that helps meanwhile, Thomas Xuefer@21cn.com wrote: > ID: 11762 > User Update by: Xuefer@21cn.com > Status: Bogus > Bug Type: Documentation problem > Operating system: win2k > PHP Version: 4.0.5 > Description: bad example > > 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 ? > > Previous Comments: > --------------------------------------------------------------------------- > > [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 > > --------------------------------------------------------------------------- > > Full Bug description available at: > http://bugs.php.net/?id=11762

« previous php.doc (#969335723) next »