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
https://forums.phpfreaks.com/topic/133693-solved-carriage-return/
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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.