mamdouh asked this 3 years ago

New line character not working in PHP?


echo "/n";


is not working for me somehow?


AskOTG 3 years ago
1 like

Thats weird.

Are you echoing this to a webpage?

In that case use html <br> instead.


sonja 3 years ago
1 like

Use the PHP_EOL built-in constant.

echo PHP_EOL;