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 <<