|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-15 07:02 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 14:00:01 2026 UTC |
Description: ------------ PHP is great! I love this language, and I apreciate the work of the developers ... you are all very awesome! The following code works as I expect: <?php $var = "this" . "that" . "other\n"; print $var; ?> thisthatother When I use the concatenation operator in a class however I get a parse error. Reproduce code: --------------- <?php class foo { public static $var = "this" . "that" . "other\n"; } print foo::$var; ?> Expected result: ---------------- thisthatother Actual result: -------------- Parse error: syntax error, unexpected '.', expecting ',' or ';'