mamdouh asked this 7 years ago

New line character not working in PHP?

Hi,

echo "/n";

 

is not working for me somehow?

 


Best Answer by sonja 7 years ago

Use the PHP_EOL built-in constant.

echo PHP_EOL;
AskOTG 7 years ago
1 like

Thats weird.

Are you echoing this to a webpage?

In that case use html <br> instead.