derek Sat Dec 20 19:13:11 2003 EDT
Modified files:
/phpdoc/en/functions strings.xml
Log:
additional example and punctuation fix
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.173 phpdoc/en/functions/strings.xml:1.174
--- phpdoc/en/functions/strings.xml:1.173 Wed May 7 17:31:30 2003
+++ phpdoc/en/functions/strings.xml Sat Dec 20 19:13:10 2003
@@ -8,7 +8,7 @@
instead -->
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.173 $ -->
+<!-- $Revision: 1.174 $ -->
<reference id="ref.strings">
<title>String functions</title>
<titleabbrev>Strings</titleabbrev>
@@ -558,11 +558,15 @@
echo $foo; // foobar
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 <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
-line with just a semicolon no extra whitespace!
+line with just a semicolon. no extra whitespace!
END;
// because echo is not a function, following code is invalid.