Jump to content

[SOLVED] Display text with breaks


noobstar

Recommended Posts

Hi, im tring to get this to work however, im unsure how to.

 

When you type lets say this into a textarea box and save it into a variable:

 

This is a test

 

1

 

2

 

3

 

And when you display it through echo it will just show this in a straight line i.e. This is a test 1 2 3.

 

My question is is there a way to retain the breaks inbetween just the way its written in the textarea box ?

 

 

Thanks again :)

Link to comment
https://forums.phpfreaks.com/topic/71320-solved-display-text-with-breaks/
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.