title: PHP preg_replace replacing line break
body: <p>When renumbering an array using</p>
  <pre><code>$arr=array_values($arr); // Renumber array
  </code></pre>
  <p>I realized that a line break is being introduced into one of the array strings, which I don't want.</p>
  <p>My string is going from:</p>
  <p>Property
  Type</p>
  <p>to Property</p>
  <p>Type</p>
  <p>In any case I am using:</p>
  <pre><code>$newelement = preg_replace(&quot;/[^A-Za-z0-9\s\s+]/&quot;, &quot; &quot;, $element);
  </code></pre>
  <p>already to remove unwanted characters prior to database insertion, so I tried to change it to:</p>
  <pre><code> $newelement = preg_replace(&quot;/[^A-Za-z0-9\s\s+'&lt;br&gt;''&lt;br&gt;''/n''/cr']/&quot;, &quot; &quot;, $element);
  </code></pre>
  <p>But there is no change, and the ?line feed/line break/carriage return is still there.</p>
  <p>Am I doing the preg_replace call correctly?</p>