Jump to content

Probably a simple question...


waynew

Recommended Posts

To clarify, it won't 'output linebreaks' - the new lines are outputted anyway, it is just that any amount of whitespace in HTML is treated as one space. If you were not outputting HTML and were, for example, writing to a file, the new lines would be present. To have a new line in a webpage, you must use the br tag. The function nl2br() converts the new line character to a br tag.

 

 

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.