title: PHP replacing literal \r\n with <br/> (not replacing new lines)
body: <p>Basically I have this script that I'm trying to replace the literal text <code>\r\n</code> with <code>&lt;br /&gt;</code> for proper formatting. I've tried <code>nl2br()</code> and it didn't replace the <code>\r\n</code> with <code>&lt;br /&gt;</code>. Here's the code.</p>
  
  <pre><code>$title = isset($post[0]) ? $post[0] : false;
  $body = isset($post[1]) ? preg_replace('#(\r|\r\n|\n)#', '&lt;br/&gt;', $post[1]) : false;
  echo $title."&lt;br/&gt;".$body;  
  </code></pre>