Answers for "php split large text on line breaks into array"

PHP
0

php split large text on line breaks into array

#1
$arr=explode("\n",$text);

#2
$arr=explode("<br>",nl2br($text));
Posted by: Guest on April-21-2021

Code answers related to "php split large text on line breaks into array"

Browse Popular Code Answers by Language