carriage return?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

carriage return?

Post by Illusionist »

i'm writing data to a textfile, and would like to include a character return....
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

nevermind, i got it!
I was just using /n and /r by themselves, so i put them together, and it works now! :-D
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You're on windows then :)?

Windows: \r\n
Unix/Linux: \n
Mac: \r

Isn't consistency great.

Mac
Post Reply