mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
additional example and punctuation fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147047 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b57bc9da58
commit
3cc3e2da12
1 changed files with 6 additions and 2 deletions
|
@ -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 is $foo'; // foo is $foo
|
|||
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.
|
||||
|
|
Loading…
Reference in a new issue