Answers for "new line to array php online"

PHP
3

php explode new line

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

php print array new line

//Tell the browser it's not an HTML document, but a text, by placing the following code before any output is sent
header('Content-type: text/plain');

echo "<pre>".print_r($array)."</pre>";
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language