php split large text on line breaks into array

Solutions on MaxInterview for php split large text on line breaks into array by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "php split large text on line breaks into array"
Gabriel
26 Sep 2016
1#1
2$arr=explode("\n",$text);
3
4#2
5$arr=explode("<br>",nl2br($text));
similar questions