title: Remove new line and carriage return characters in a string
body: <p>I'm trying to count the characters in a textarea, but it also counts "\n" and "\r" as characters; how would I remove them in order to count just the actual text input?</p>
  
  <pre><code>$pure_chars = preg_replace("/\r\n/", "", $_POST['comment']);
  echo strlen($pure_chars);
  </code></pre>