note 62064 deleted from function.fwrite by bjori

From: Date: Wed, 22 Mar 2006 17:47:43 +0000
Subject: note 62064 deleted from function.fwrite by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106280@lists.php.net to get a copy of this message
Note Submitter: ---- For anyone who is getting literal '\\r\\n' characters come out in their txt file, the reason I was getting them is I was using single quotes for the string. So the backslashes were getting automatically escaped by PHP or something. You have to double-quote the string, ie: $str = "my text\\r\\n"; fwrite($file, $str);

« previous php.notes (#106280) next »