How to use cross-platform newline in PHP

1 Answer

0 votes
// PHP_EOL = "\r\n" OR "\n" depend on the system you use

$s = "PHP Programming" . PHP_EOL;

echo $s;

/*
run:

PHP Programming

*/

 



answered Oct 11, 2018 by avibootz

Related questions

...