note 63347 added to function.fwrite
| From: | rob at osu1 dot php dot net | Date: | Mon, 20 Mar 2006 20:39:31 +0000 |
| Subject: | note 63347 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106115@lists.php.net to get a copy of this message | ||
Re: 18-Feb-2006 11:41
Special characters like \r and \n are only parsed as carriage-return and line-feed/newline when
enclosed in double-quotes. See table 11-1 on http://www.php.net/manual/en/language.types.string.php
for more details. When you use single quotes, it treats everything inside the single quotes
literally. So it's not escaping the \r, it just sees it as a backslash and an r.
----
Server IP: 216.194.113.175
Probable Submitter: 66.9.31.242
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- http://master.php.net/note/edit/63347
Del: integrated -- http://master.php.net/note/delete/63347/integrated
Del: useless -- http://master.php.net/note/delete/63347/useless
Del: bad code -- http://master.php.net/note/delete/63347/bad+code
Del: spam -- http://master.php.net/note/delete/63347/spam
Del: non-english -- http://master.php.net/note/delete/63347/non-english
Del: in docs -- http://master.php.net/note/delete/63347/in+docs
Del: other reasons-- http://master.php.net/note/delete/63347
Reject -- http://master.php.net/note/reject/63347
Search -- http://master.php.net/manage/user-notes.php