|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-10-15 11:50 UTC] alex at passant dot org
Description: ------------ On http://www.php.net/manual/en/language.oop5.basic.php, you wrote: "Every class definition begins with the keyword class, followed by a class name, which can be any name that isn't a reserved word in PHP." Then: " <?php class SimpleClass { " So I think there's a mistake in the first sentence, as - I assume - class definition should begin ith the class name, followed by the 'class' keyword. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 02:00:02 2025 UTC |
I quote "Every class definition begins with the keyword class". It seems it does begin with the keyword 'class' ('class' is the keyword). And THEN it shows the name of the class to be defined, in this example being 'SimpleClass'. So, first the keyword, followed by a valid class name. There is no such bug in documentation.