Answers for "split by new line php"

PHP
5

php explode new line

$values = preg_split('/\r\n|\r|\n/', $myString);
Posted by: Guest on February-06-2021
0

php split string by enter

$your_array = explode("\n", $your_string);
Posted by: Guest on April-15-2022

Browse Popular Code Answers by Language