Jump to content

Line Break Fails


unemployment

Recommended Posts

It does. The problem is web browsers ignores the new line characters (\n). You need to use the <br /> html tag in order for the browser to display text on a  new line.

 

PHP has a function for converting new line characters to <br /> tags called nl2br

Link to comment
https://forums.phpfreaks.com/topic/241249-line-break-fails/#findComment-1239202
Share on other sites

It does. The problem is web browsers ignores the new line characters (\n). You need to use the <br /> html tag in order for the browser to display text on a  new line.

 

PHP has a function for converting new line characters to <br /> tags called nl2br

 

oh ok... so what is the point of using \n or \r?

Link to comment
https://forums.phpfreaks.com/topic/241249-line-break-fails/#findComment-1239204
Share on other sites

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.