Preserve newlines when using php split
<p>I'm using php's split function to break a pipe delimited record into an array</p>

<pre><code>explode("|",$line)
</code></pre>

<p>When there is a newline within the pipe field, split puts it into a new array field</p>

<pre><code>blue|is my favorite|color
</code></pre>

<p>works fine and gives 3 array elements</p>

<pre><code>blue|is my
favorite|color
</code></pre>

<p>results in 4 array elements</p>

<p>How do I make it retain newlines?</p>
