title: Store real line break in db
body: <p>I have a field called eol (type: varchar) in my mysql database.</p>
  
  <p>I set it to default \r\n in PHPMyAdmin.</p>
  
  <p>if i doing a <code>SELECT</code> using PDO i do not recieve a real line break.</p>
  
  <p>If I var_dump my result like this:</p>
  
  <pre><code>var_dump(unpack('C*',$eol));
  </code></pre>
  
  <p>The result is: </p>
  
  <pre><code>array(4) { 
  [1]=&gt; int(92) 
  [2]=&gt; int(114) 
  [3]=&gt; int(92) 
  [4]=&gt; int(110) 
  } 
  </code></pre>
  
  <p>which is in fact:</p>
  
  <ul>
  <li>[backslash] </li>
  <li>r </li>
  <li>[backslash] </li>
  <li>n</li>
  </ul>
  
  <p>If I var_dump a real line break </p>
  
  <pre><code>var_dump(unpack('C*',"\r\n"));
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>array(2) { 
  [1]=&gt; int(13) 
  [2]=&gt; int(10) 
  } 
  </code></pre>
  
  <p>How do I store a real line break properly in mysql?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>@all if i doing simple</p>
  
  <p>var_dump("\r\n");</p>
  
  <p>it will be shown like this:</p>
  
  <pre><code>string(2) "
  "
  </code></pre>
  
  <p>which is nice but I cannot see the real chars!</p>