Explode linespaces

My first page has a textarea input, that is posted through a form to the second page…

<textarea name=import id=import></textarea>

where some php code tries to explode the input text by it’s enter spaces or breacks, but it’s not working.

$import = explode("//n",$_POST[import]);

I have tried too:

$import = explode("/n",$_POST[import]);

did u tried on trim or str_replace() ?

Wrong slash. you want \ not /

You also don’t want two of them, as that would translate to a literal
instead of ASCII code #13.

$import = explode("

Should work just fine.