+ 1

How to write new line

Echo name Echo age Output Abc20 instead i want Abc 20

18th Jun 2016, 1:39 PM
Chandrashekhar Choudhary
Chandrashekhar Choudhary - avatar
10 Respostas
+ 3
Echo <br>$name</br> Echo <br>$age</br>
18th Jun 2016, 2:58 PM
Aakash Panchal
Aakash Panchal - avatar
+ 2
echo "$name <br>"; echo "$age ";
18th Jun 2016, 5:59 PM
Theodoros Vragkos
0
echo name echo age
18th Jun 2016, 6:23 PM
Sulabh Sharma
Sulabh Sharma - avatar
0
echo name echo age
18th Jun 2016, 6:23 PM
Sulabh Sharma
Sulabh Sharma - avatar
0
echo name echo age
18th Jun 2016, 6:24 PM
Sulabh Sharma
Sulabh Sharma - avatar
0
use <br>
19th Jun 2016, 11:46 AM
Adil Yousfi
0
use break tag
15th Jul 2016, 2:12 AM
Sophiya.K
Sophiya.K - avatar
0
double quote should be the best choice: echo "ABC /n 20"; //result: ABC 20 but single quote can't: echo 'ABC /n 20'; //result: ABC /n 20
31st Oct 2016, 7:09 AM
Điệp Trịnh
Điệp Trịnh - avatar
0
echo $name "</br>" $age;
14th Dec 2016, 12:29 PM
Shakti Prasad
- 1
You just use ‹br› tag for new line Echo "‹br /›";
25th Jun 2016, 1:43 PM
abhishek sharma