Answers for "explode per line in php"

PHP
2

php explode new line

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

php explode

$colors  = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Posted by: Guest on June-14-2019

Browse Popular Code Answers by Language