This question already has an answer here:
- Elegant solution for line-breaks (PHP) 8 answers
I found that linebreak solution here
a) But the result of the echo has no linebreaks, what is wrong?
b) Can I do linebreaks in the echo as well?
PHP
<?php
$var = "Hi there
Welcome to my website
";
echo $var;
?>
</div>