Page 1 of 1

How to Use line seperator in PHP explode() function??

Posted: Wed Oct 27, 2010 1:21 am
by velu14.cse
i m using php explode function..now i m sepeating With space,but i want to seperate with New Line.....pleade do me a favour of this

Re: How to Use line seperator in PHP explode() function??

Posted: Wed Oct 27, 2010 1:29 am
by Christopher
New line is "\n", return is "\r". Make sure you use double quotes.