explode on \n
Posted: Mon Jan 30, 2006 12:01 pm
Am I just not seeing it? Why can I not explode on a \n? I know 100% that its there cause it comes out of the db and i know it has it in the db and when i <pre>print_r($arr)</pre> it has the line break and when i view source it does as well but when I explode on it, nothing happens.
thats what happens. Any help? I really would like to keep the \n but even more so need somthing to explode on to seperate the 2 parts there.
Code: Select all
$fields = explode(' \n ', $info[1]);
echo 'fields';
$this->dump($fields);
/*
* [0] => Field 3 = params 3
* Field 4 = params 4
*/