I am finding it difficult to get my text to align in the correct columns when sending my orders by email.
The first and second columns align correctly but after that it goes down hill.
I realize what my problem is but I can't figure out how to solve it, the products and quantity come in
various lengths and tabs it accordingly based on the end of the each value begin entered.
$display_order = "";
foreach ($items as $item)
{
$item_amount = $item['product_amount'] * $item['quantity'];
$display_order .= "VM-".$item['product_id']."\t".$item['product_name']."\t\t".$item['quantity']."\t$".FmtAmt($item_amount)."\n";
}
Is there a different method to aligning my products or is it impossible because of the various sizes.
Any help would be much appreciated.