Hi -I'm just starting out in PHP, and want to use the echo command. I want to split the sentence into new lines. I've read /n is used for that. When I do this it has no effect, what am I doing wrong please?
Taken from
<?php
echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
?>
OUTPUT=
This spans multiple lines. The newlines will be output as well.
What am I doing wrong? PHP is working as I can retrieve and display IP address info etc but all my results end up on one line :/
Thanks
Taken from
<?php
echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
?>
OUTPUT=
This spans multiple lines. The newlines will be output as well.
What am I doing wrong? PHP is working as I can retrieve and display IP address info etc but all my results end up on one line :/
Thanks