note 51368 added to function.echo
| From: | renrutal at gmail dot com | Date: | Mon, 28 Mar 2005 23:34:43 +0000 |
| Subject: | note 51368 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87117@lists.php.net to get a copy of this message | ||
Note that:
<?php
echo "2 + 2 = " . 2+2; // This will print 4
echo "2 + 2 = " , 2+2; // This will print 2+2 = 4
?>
The commas will parse the result of the expressions correctly.
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51368
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51368&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51368&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51368&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51368&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51368&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51368&report=yes
Search -- http://master.php.net/manage/user-notes.php