|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-21 18:16 UTC] jim at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 06:00:01 2025 UTC |
The echo function appears to have a syntax inconsistency - not fatal, but a bit confusing. The documented format for the the function is: echo(string arg1, string argn...); This form produces a parse error if there is more than one argument. On the other hand, leaving out the parentheses as in: echo string arg1, string argn...; works as expected. This isn't critical, but perhaps some notice needs to be made of the situation, or the documentation needs to be updated to reflect this quirk. It would have saved me a few minutes of farting around trying to figure out why echo() wouldn't work when I gave it multiple arguments as per the docs.