note 112928 added to function.print
| From: | LukeWenke | Date: | Thu, 08 Aug 2013 06:46:44 +0000 |
| Subject: | note 112928 added to function.print | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195908@lists.php.net to get a copy of this message | ||
"print is not actually a real function (it is a language construct) so you are not required to
use parentheses with its argument list."
I don't think it has an "argument list" because the following gives a syntax error:
print (1, 2);
Here is an example of how the brackets work with print:
print ((1) + (2)) + (3);
Unlike a function it doesn't just use the first brackets... it prints "9".
----
Server IP: 113.20.13.217
Probable Submitter: 110.174.246.216
----
Manual Page -- http://php.net/manual/en/function.print.php
Edit -- https://master.php.net/note/edit/112928
Del: integrated -- https://master.php.net/note/delete/112928/integrated
Del: useless -- https://master.php.net/note/delete/112928/useless
Del: bad code -- https://master.php.net/note/delete/112928/bad+code
Del: spam -- https://master.php.net/note/delete/112928/spam
Del: non-english -- https://master.php.net/note/delete/112928/non-english
Del: in docs -- https://master.php.net/note/delete/112928/in+docs
Del: other reasons-- https://master.php.net/note/delete/112928
Reject -- https://master.php.net/note/reject/112928
Search -- https://master.php.net/manage/user-notes.php