Date: 06/27/01
- Next message: derick <email protected>: "Re: [PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Previous message: Xuefer <email protected>: "[PHP-DOC] Bug #11762: bad example"
- Next in thread: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: danbeck <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: danbeck <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: derick <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: sniper <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: goba <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: goba <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: cynic <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 11762
Updated by: sniper
Reported By: Xuefer <email protected>
Old-Status: Open
Status: Bogus
Bug Type: Documentation problem
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
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.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-27 22:34:30] Xuefer <email protected>
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11762&edit=2
- Next message: derick <email protected>: "Re: [PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Previous message: Xuefer <email protected>: "[PHP-DOC] Bug #11762: bad example"
- Next in thread: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: danbeck <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: danbeck <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: derick <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: sniper <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: goba <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: goba <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: Xuefer <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Maybe reply: cynic <email protected>: "[PHP-DOC] Bug #11762 Updated: bad example"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

