Jump to content

remove \n


jaymc

Recommended Posts

I am creating a php script which will feed in some text from a textarea and produce an output

 

The issue Im stuck with is getting rid of returns, Here is an example of what I want the code to do and the result it should give in raw data which is essentually to remove the page breaks. However, the code Ive give doesnt work

 

test

 

test

 

 

 

test

 

test

 

How can I achieve this

 

 

$statsb = str_replace("\r", "", $stats);

 

 

test

test

test

test

 

 

Link to comment
https://forums.phpfreaks.com/topic/46797-remove-n/
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.