|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-01-16 13:47 UTC] Quis at omicidio dot nl
Description: ------------ Unexpected parse error Reproduce code: --------------- Not working: echo 1.'sometext'; or, return 1.'sometext'; Working: $i=1; echo $i.'sometext'; Expected result: ---------------- 1sometext Actual result: -------------- Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
The 'actual' code I got this error on was: echo 1.str_repeat('sometext', 3); Also resulting in Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'