+ 3

Line brake

how to line break between two variables..like in HTML it's </br>

25th Jan 2017, 4:14 AM
Prof. Alamin
Prof. Alamin - avatar
4 Réponses
+ 2
okk
24th Apr 2017, 12:56 PM
Prof. Alamin
Prof. Alamin - avatar
0
<?php $var1 = 'value1'; $var2 = 'value2'; echo $var1 ."<br />". $var2; ?> or if not to browser: \n
26th Jan 2017, 12:22 AM
Rob
Rob - avatar
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; ?>
5th Feb 2017, 9:50 AM
ram b
0
bro I want you to see my latest program
24th Apr 2017, 12:56 PM
Lucas
Lucas - avatar