note 106398 added to function.echo
| From: | ximlabz at gmail dot com | Date: | Sat, 05 Nov 2011 18:16:51 +0000 |
| Subject: | note 106398 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184309@lists.php.net to get a copy of this message | ||
A remedy to the problems caused by different management of returns between different platforms you
can use the predefined constant PHP_EOF as the second parameter:
<?php
$foo = "foo";
$bar = "bar";
echo "Foo is $foo", PHP_EOL;
echo "Bar is $bar";
// is the same as using:
echo "Foo is $foo\n";
echo "Bar is $bar";
// but here only for UNIX-like platforms
?>
----
Server IP: 94.141.21.201
Probable Submitter: 79.21.184.204
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- https://master.php.net/note/edit/106398
Del: integrated -- https://master.php.net/note/delete/106398/integrated
Del: useless -- https://master.php.net/note/delete/106398/useless
Del: bad code -- https://master.php.net/note/delete/106398/bad+code
Del: spam -- https://master.php.net/note/delete/106398/spam
Del: non-english -- https://master.php.net/note/delete/106398/non-english
Del: in docs -- https://master.php.net/note/delete/106398/in+docs
Del: other reasons-- https://master.php.net/note/delete/106398
Reject -- https://master.php.net/note/reject/106398
Search -- https://master.php.net/manage/user-notes.php