Hi all,
Not sure why I can not get \n to create a new line
For example:
array.php
<?php
$colors = array('red', 'blue', 'green', 'yellow');
foreach ($colors as $color) {
echo "Do you like $color?\n";
}
?>
Outputs this:
Do you like red? Do you like blue? Do you like green? Do you like yellow?
This is what it is supposed to output:
Do you like red?
Do you like blue?
Do you like green?
Do you like yellow?
But if I use the HTML <BR> tag it works fine.
Webserver is Apache
PHP5.0
Kind regards,