Jump to content

spacing problems


nick5449

Recommended Posts

I have an array that I want to display, but with a enter in between them.  The code I have is this: [code] $x = 0;
while($x != count($test)){
echo $test[$x];
echo "\n";
$x++;
}[/code]

The array is displayed but the enter isn't.  Why wont '\n' work and how else can I get an enter to be displayed? Thanks.
Link to comment
https://forums.phpfreaks.com/topic/13789-spacing-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.