title: Preserve linebreaks - PHP variable
body: <p>Easiest way to explain this is like this.</p>
  
  <pre><code>$find = "Hello
  this is a new line";
  
  $replace = "More content
  Hello
  this is a new line
  this is an even newer line";
  
  if(strpos($replace, $find) !== false) {
     //We have a match
  }
  </code></pre>
  
  <p>If I use <code>strpos</code> it ignores the line breaks meaning it does not find a match in replace when in fact line 2 and 3 match <code>$find</code>. Is there any way around this?</p>
  
  <p>The <code>$find</code> and <code>$replace</code> will need to be dynamic by using a function. I have tried <code>str_replace</code> which also does not find matches. It actually outputs <code>$find</code> as <code>Hello this is a new line</code>. It removes the linebreak and replaces it for a space.</p>