chestertb
01-29-2007, 05:38 AM
Ok. I'm stumped.
This
$t++;
$invc[$t] = "Invoice Date:.......".$pdate;
$t++;
$invc[$t] = "Invoice Number:.....".$cart;
prints as
Invoice Date:.......02-11-2006
Invoice Number:.....1053
While this
$t++;
$invc[$t] = "Invoice Date: ".$pdate;
$t++;
$invc[$t] = "Invoice Number: ".$cart;
loses the padding spaces and prints as
Invoice Date: 02-11-2006
Invoice Number: 1053
though not all of them... it seems to condense multiple spaces to a single space... so it looks like this is a "feature" of php.
How do I work around this?
Thanks
CTB
This
$t++;
$invc[$t] = "Invoice Date:.......".$pdate;
$t++;
$invc[$t] = "Invoice Number:.....".$cart;
prints as
Invoice Date:.......02-11-2006
Invoice Number:.....1053
While this
$t++;
$invc[$t] = "Invoice Date: ".$pdate;
$t++;
$invc[$t] = "Invoice Number: ".$cart;
loses the padding spaces and prints as
Invoice Date: 02-11-2006
Invoice Number: 1053
though not all of them... it seems to condense multiple spaces to a single space... so it looks like this is a "feature" of php.
How do I work around this?
Thanks
CTB