This question already has an answer here:
- PHP parse/syntax errors; and how to solve them? 17 answers
- PHP - how to create a newline character? 13 answers
In my code I have several sentences in one paragraph as I would like to not get spacing between them. However I can't seem to get them each to begin on a newline.
<p class ="BasicP"> Datum: <?php echo $Datum;"
"?>
Betreft: <?php echo $Betreft;"<br>"?>
Offertenr: <?php echo $Offertenr;"
"?>
<p>
And this outputs: Datum: Betreft: Offertenr:
I would like it to output:
Datum:
Betreft:
Offertenr:
Each of them starting on a new line.
I've tried <br>, PHP_EOL and newline
.
If anyone could tell me what exactly is wrong and how to do it, that would be appreciated.
I added what I tried to the code, none of the tree get me a new line for some reason..
</div>