note 89112 added to language.oop5.basic
| From: | Robins at osu1 dot php dot net | Date: | Sun, 22 Feb 2009 16:39:46 +0000 |
| Subject: | note 89112 added to language.oop5.basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150952@lists.php.net to get a copy of this message | ||
The line on this page above is technically incorrect.
INCORRECT: The default value must be a constant expression, not (for example) a variable, a class
member or a function call.
CORRECT: The default value must be a constant, not (for example) a variable, an expression, a class
member or a function call.
This is because
$a = "abc" . "def"; // IS WRONG
$a = "abcdef"; // IS ALLOWED
"abc" . "def" is a constant expression, but still illegal.
----
Server IP: 69.147.83.197
Probable Submitter: 59.180.141.139
----
Manual Page -- http://www.php.net/manual/en/language.oop5.basic.php
Edit -- https://master.php.net/note/edit/89112
Del: integrated -- https://master.php.net/note/delete/89112/integrated
Del: useless -- https://master.php.net/note/delete/89112/useless
Del: bad code -- https://master.php.net/note/delete/89112/bad+code
Del: spam -- https://master.php.net/note/delete/89112/spam
Del: non-english -- https://master.php.net/note/delete/89112/non-english
Del: in docs -- https://master.php.net/note/delete/89112/in+docs
Del: other reasons-- https://master.php.net/note/delete/89112
Reject -- https://master.php.net/note/reject/89112
Search -- https://master.php.net/manage/user-notes.php