CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Missing carriage return chars.
lyleyboy
Permalink to comment
#
October 2011
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
Code: [Select]
str_replace(' ', '
', $notes);
and
Code: [Select]
str_replace(chr(10), " ", $notes);
Please help
Add a Comment
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
Code: [Select]
str_replace(' ', '
', $notes);
and
Code: [Select]
str_replace(chr(10), " ", $notes);
Please help