mamdouh asked this 4 years ago

New line character not working in PHP?


echo "/n";


is not working for me somehow?


Best Answer by sonja 4 years ago

Use the PHP_EOL built-in constant.

echo PHP_EOL;
AskOTG 4 years ago
1 like

Thats weird.

Are you echoing this to a webpage?

In that case use html <br> instead.