+ 1

how print the "\n" in php ???

can any one say me how print the "\n" only in php

7th Jan 2017, 11:27 AM
Ananta Khare
Ananta Khare - avatar
2 Réponses
+ 1
\n makes one white space character . if you want to use" \n" which means new line , you can use the Break Tag " <br> "
13th Apr 2017, 3:34 AM
Mahmoud Zardi
Mahmoud Zardi - avatar
0
PHP_EOL is used to break that line and go to a new one. Depending on which OS your PHP is running on, PHP_EOL will output \n, \r\n. PHP_EOL stands for End Of Line. Use \\n to print \n to the console.
7th Jan 2017, 11:40 AM
qobus