0

How to display to variables values in next line

in each line there should separate output.

26th Dec 2016, 2:25 PM
Mayur Bagul
Mayur Bagul - avatar
8 Antworten
+ 3
echo $var1 . '<br>' . $var2 . '<br>' ...etc...;
26th Dec 2016, 2:28 PM
Nahuel
Nahuel - avatar
+ 3
. its for concat . you need to echo in quotes mark if you want html tags like <p>.
26th Dec 2016, 3:13 PM
Nahuel
Nahuel - avatar
0
but when I wrote like echo $name ; echo <p>$Marks</p> it gives output john89
26th Dec 2016, 2:29 PM
Mayur Bagul
Mayur Bagul - avatar
0
dude its giving me error
26th Dec 2016, 2:32 PM
Mayur Bagul
Mayur Bagul - avatar
0
its working tnx
26th Dec 2016, 2:35 PM
Mayur Bagul
Mayur Bagul - avatar
0
why u used . operator?
26th Dec 2016, 2:37 PM
Mayur Bagul
Mayur Bagul - avatar
0
thanks friend I got it. you mean to say for any kind of HTML tag to use it in echo I should use quotes and . operator for concat is that right.
27th Dec 2016, 1:11 AM
Mayur Bagul
Mayur Bagul - avatar
0
example: echo '<p>'.$num1.'</p>';
29th Dec 2016, 9:53 PM
afgprogrammer
afgprogrammer - avatar