All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Missing carriage return chars.

  • # October 6, 2011 at 6:19 pm


    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);
    Code: [Select]
    str_replace(chr(10), ” “, $notes);

    Please help

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed