Re: Printing \n and \r to the screen

From: Date: Thu, 25 Aug 2005 18:09:45 +0000
Subject: Re: Printing \n and \r to the screen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221366@lists.php.net to get a copy of this message
If you're reading this text from a file, and then splitting it into seperate lines, then I personally think you should leave this to the built-in file() function. On 8/24/05, Dotan Cohen <dotancohen@gmail.com> wrote: > I seem to be having trouble with \n and \r in variables. I write my > code on a linux box, and the server is linux. So I should always have > \n\r, no? Is there a way the I could print $variable; and have it show > me the /n and /r 's ? I tried with a srt_replace() on /n and on /r, > but they do not get replaced. I also tried escaping the backslash, > then double escaping that as was suggested somewhere in the > php.net/manual, then triple escaping! > > Thanks ahead of time for any insight. > > Dotan Cohen > > http://lyricslist.com/lyrics/artist_albums/183/etheridge_melissa.php > Etheridge,Melissa Song Lyrics > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#221366) next »