+ 3
Line brake
how to line break between two variables..like in HTML it's </br>
4 Réponses
+ 2
okk
0
<?php
$var1 = 'value1';
$var2 = 'value2';
echo $var1 ."<br />". $var2;
?>
or if not to browser:
\n
0
php is mostly used to develop web apps ... i mean to generate dynamic data in a web page.. as you know web pages are made of markup languages like html xml . so it was simple like html use <br> where you want a line break
example code
<?php
$a='say';
$b='hello';
echo $a;
echo '<br>';
echo $b;
//or simply you can concatinate into single string
echo $a.'<br>'.$b;
?>
0
bro I want you to see my latest program