0
How to display to variables values in next line
in each line there should separate output.
8 Antworten
+ 3
echo $var1 . '<br>' . $var2 . '<br>' ...etc...;
+ 3
. its for concat .
you need to echo in quotes mark if you want html tags like <p>.
0
but when I wrote like echo $name ;
echo <p>$Marks</p>
it gives output john89
0
dude its giving me error
0
its working tnx
0
why u used . operator?
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.
0
example:
echo '<p>'.$num1.'</p>';