it is "\n" not "/n".
Without "\n"
PHP Code:
echo "Name : <input type=text name=txt value=''>";
echo "<input type=button name=btn value='submit'>";
The above code will look in browser like following
Name : [ ][submit]
if you look at html souce of browser it will look like
Name : <input type=text name=txt value=''><input type=button name=btn value='submit'>
With "\n"
PHP Code:
echo "\nName : <input type=text name=txt value=''>";
echo "\n<input type=button name=btn value='submit'>";
The above code will look in browser like following
Name : [ ][submit]
if you look at html souce of browser it will look like following, it will show button line on next line, this increases code readability. but output in browser will remain same. button will be shown on same line as text box
Name : <input type=text name=txt value=''>
<input type=button name=btn value='submit'>
With "\n" and "<br>"
PHP Code:
echo "\nName : <input type=text name=txt value=''>";
echo "<br>";
echo "\n<input type=button name=btn value='submit'>";
The above code will look in browser like following
Name : [ ]
[submit]
if you look at html souce of browser it will look like following, it will show button line on next line, this increases code readability. output in browser will change this time. Button will be shown on next line due to
<br> .
Name : <input type=text name=txt value=''>
<input type=button name=btn value='submit'>