The following script prints the strings from the array named arr. After an echo from arr I try to insert a line break using \n but I don’t see it. Why is that ?
<?php
$arr = array("ghazal","shayari","silence","hayaat");
echo $arr[0];
echo $arr[1];
foreach($arr as $var) {
echo $var;
echo "\n";
}
HTML treats all whitespace characters, in any number, identically.
That is, the following will all render as a single space in the browser:
In order to render an actual linkbreak in HTML, you need to insert a
<br>element into your document.