![]() Topic awaiting preservation: Hard Enter (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: |
![]() ok, i've got a guestbook, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Alright first check out this thread |
Maniac (V) Inmate From: Florida |
![]() When working with file() in MOST cases trim() will do you for carriage returns "\n" and new lines "\n" |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() argh. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Actually that won't work. nl2br only inserts the break tags it doesn't remove the newline so he'd still have the same problem. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() actually, bitdamaged, you're right! |
Paranoid (IV) Inmate From: |
![]() Ok next question , i havent got \n or anything in the file but it goes to a new line... would you say the \n is invisble? becaus all's I have in my file is |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() you won't see a \n or \r the slash makes these escape characters for characters you can't see |
Paranoid (IV) Inmate From: New Jersey, USA |
![]() Depending on what editor you work in you might have a setting in the preferences to view hidden characters. If so, select it and you will see all the space and returns and what not. It's helped me more than once in figuring out why my code wasn't doing what I expected. |