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