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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
velu14.cse
Forum Newbie
Posts: 1
Joined: Wed Oct 27, 2010 1:08 am

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

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

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

Post by Christopher »

New line is "\n", return is "\r". Make sure you use double quotes.
(#10850)
Post Reply