+ 1
How to display two variables in separate lines?
7 ответов
+ 4
or <?php echo $var1 .'<br>'. $var2; ?>
+ 1
<div><?php echo $var1; ?></div>
<div><?php echo $var2; ?></div>
+ 1
used concat
0
isnt there any easy statement for this?
0
tnx king and James somehow it will help me
0
Use HTML tags:
<?php
$var1= "hello";
$var2= "word";
echo "$var1 <br> $var2"
// or echo $var1."<br>". $var2
?>
output:
hello
word
0
echo "hello\nworld"; or echo "$var1 \n $var2"