Jump to content

Replacing Carridge Return Chars


Lyleyboy

Recommended Posts

Hi,

 

I'm looking for a bit of help.

 

I have a record in a MSSQL. I'm using PHP to pull that record.

 

In the record there are the funky square characters for chr(13) and chr(10).

 

In PHP they are totally ignored which means that the record appears on one line.

 

I have tried replacing these with various a numerous characters but no joy.

 

Things like

str_replace('&#10;', '<br/>', $notes);

and

str_replace(chr(10), " ", $notes);

 

Please help

 

 

Link to comment
https://forums.phpfreaks.com/topic/248564-replacing-carridge-return-chars/
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.