I am newbie to PHP I have written the following program:
$address=array('abc@gmail.com','abc@hotmail.com','def@yahoo.com');
foreach($address as $value)
{
echo "processing $value\n";
}
If you see I have \n in the echo statement but I am not getting the output on new line.
How can I get each output on a new line?
\nwill line break properly when you view the source, but not in the HTML display. As mentioned, you need to use the<br/>node for HTML