|
-
Sep 10th, 2000, 05:16 AM
#1
Thread Starter
Junior Member
I want to display data from arrays in neat rows and columns in a browser. Tables just keep getting messed up.
I used the 'sprintf' function to format the data padding with spaces as necessary.
$result = sprintf("%-25s,%-10s,%-15s,%-5s,%-20s,%-20s,%-10s\n", $fields[0], $fields[1], $fields[2], $fields[3], $fields[4], $fields[5]);
But HTML does not display more that 1 space.
How do I get the display I want?
I tried replacing the space with ' ' but without success.
Any help would be appreciated.
Peter Brown
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|