boococp
February 13th, 2010, 08:17 PM
Running PHP5 on Ubuntu 9.10
The following code:
<?php
$v="Test line";
$i=1;
while ($i <=10) {
printf ("%s\n", $v);
$i++;
}
?>
generates the following output in Firefox:
Test line Test line Test line Test line Test line Test line Test line Test line Test line Test line
Can someone tell me why \n is not generating newlines?
The following code:
<?php
$v="Test line";
$i=1;
while ($i <=10) {
printf ("%s\n", $v);
$i++;
}
?>
generates the following output in Firefox:
Test line Test line Test line Test line Test line Test line Test line Test line Test line Test line
Can someone tell me why \n is not generating newlines?