#34682 [Opn->Bgs]: Echo not printing output with parenthesis and commas
| From: | sniper@php.net | Date: | Thu, 29 Sep 2005 16:06:55 +0000 |
| Subject: | #34682 [Opn->Bgs]: Echo not printing output with parenthesis and commas | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85781@lists.php.net to get a copy of this message | ||
ID: 34682
Updated by: sniper@php.net
Reported By: Adam dot Kirk at edu dot sait dot ca
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows XP
PHP Version: 5.0.5
New Comment:
Actual result is a parse error. echo is NOT a function.
This is the correct way:
echo "foo", $bar;
Previous Comments:
------------------------------------------------------------------------
[2005-09-29 18:00:47] Adam dot Kirk at edu dot sait dot ca
Description:
------------
When using the Echo to output text using a comma but inside the
parenthesis () the output doesnt work
Reproduce code:
---------------
<?PHP
$first = Adam;
echo("My Name is ", $first);
?>
Expected result:
----------------
My Name is Adam
Actual result:
--------------
actual results is blank screen
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34682&edit=1