How to detect if a string has a new line break in it?
<p>This doesn't work:</p>

<pre><code>$string = 'Hello
    world';

if(strpos($string, '\n')) {
    echo 'New line break found';
}
else {
    echo 'not found';
}
</code></pre>

<p>Obviously because the string doesn't have the "\n" character in it. But how else can I check to see if there is a line break that is the result of the user pressing enter in a form field?</p>
