note 89501 added to function.echo
| From: | s dot washington at ucl dot ac dot uk | Date: | Wed, 11 Mar 2009 13:01:26 +0000 |
| Subject: | note 89501 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151720@lists.php.net to get a copy of this message | ||
If you want to force line breaks and whitespace to be honoured when outputting to a webbrowser when
using echo (so var_dump() output displays correctly for example), then add a 'text/plain'
content-type header to your page:
<?php
header('Content-type: text/plain');
var_dump($_SERVER);
?>
----
Server IP: 92.48.74.199
Probable Submitter: 91.85.205.152
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- https://master.php.net/note/edit/89501
Del: integrated -- https://master.php.net/note/delete/89501/integrated
Del: useless -- https://master.php.net/note/delete/89501/useless
Del: bad code -- https://master.php.net/note/delete/89501/bad+code
Del: spam -- https://master.php.net/note/delete/89501/spam
Del: non-english -- https://master.php.net/note/delete/89501/non-english
Del: in docs -- https://master.php.net/note/delete/89501/in+docs
Del: other reasons-- https://master.php.net/note/delete/89501
Reject -- https://master.php.net/note/reject/89501
Search -- https://master.php.net/manage/user-notes.php