From f089b9d5cc55ceb3e7586fa40192e3f1c7f66541 Mon Sep 17 00:00:00 2001 From: Derek Ford Date: Sun, 21 Dec 2003 03:03:56 +0000 Subject: [PATCH] additional example and punctuation fix git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147062 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/echo.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reference/strings/functions/echo.xml b/reference/strings/functions/echo.xml index 48f4535553..258d439020 100644 --- a/reference/strings/functions/echo.xml +++ b/reference/strings/functions/echo.xml @@ -1,5 +1,5 @@ - + @@ -54,13 +54,17 @@ echo 'foo is $foo'; // foo is $foo // If you are not using any other characters, you can just echo variables echo $foo; // foobar -echo $foo, $bar; // foobarbarbaz +echo $foo,$bar; // foobarbarbaz + +// Some people prefer passing multiple parameters to echo over concatenation. +echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10); +echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "\n"; echo <<