Jump to content

[SOLVED] carriage return


redarrow

Recommended Posts

when a user hit enter to goto the next line, im sure that the database get specill charecter

can you tell me what the specil charecter is please..........

 

i no that nl2br converts it to a <br> or <br /> what the symballs in the database given.....

 

but nl2br uses the \n so what the database symboll for \n new line

 

not this one is it

↵  	&#8629;  	↵  	carriage return arrow

 

Link to comment
Share on other sites

If you look at the entry you'll see

 

"blah blah blah

 

blah blah blah"

 

there are 2 line break characters in there, you CAN see them by the fact that the lines are broken...

 

"blah blah blahblah blah blah"

^ same string without the line breaks

 

Now, when a browser renders HTML it ignores line breaks, so you have to make them into <br /> tags with nl2br() if you want them to display in a browser.

Link to comment
Share on other sites

Thank you so much not said anywhere on the net well put cheers.......

 

how a book should exsplain you learn nl2br() and why........

If you look at the entry you'll see

 

"blah blah blah

 

blah blah blah"

 

there are 2 line break characters in there, you CAN see them by the fact that the lines are broken...

 

"blah blah blahblah blah blah"

^ same string without the line breaks

 

Now, when a browser renders HTML it ignores line breaks, so you have to make them into <br /> tags with nl2br() if you want them to display in a browser.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.