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;"\r\n"?>
Betreft: <?php echo $Betreft;"<br>"?>
Offertenr: <?php echo $Offertenr;"\n"?>
<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..
. You are using
, so why not use both tags?
– Pavel Pája Halbich May 02 '17 at 14:58`"* - Edit: OP has parse errors, that's why. – Funk Forty Niner May 02 '17 at 14:58
` to avoid spacing, yet what you want seems to be spacing. Use several `
` then, or add `
– domsson May 02 '17 at 14:59`. What do you mean `
` doesn't work?
tags it gives me blank space between each line and I try avoiding that by putting it all in one.
– Kevin Bosman May 02 '17 at 15:03"` does not make any sense. – domsson May 02 '17 at 15:04