Re: [PHP] sprintf troubles

2004-03-26 Thread Tom Rogers
Hi, Saturday, March 27, 2004, 1:31:33 AM, you wrote: CT> Hey, CT> Im trying to use sprintf to format a number and left pad it with spaces, but CT> it doesnt want to add the spaces CT> I can pad it with anyother char using sprintf("%'_8.2f, $val) which will CT> left-pad the number with underscor

[PHP] sprintf troubles

2004-03-26 Thread Chris Thomas
Hey, Im trying to use sprintf to format a number and left pad it with spaces, but it doesnt want to add the spaces I can pad it with anyother char using sprintf("%'_8.2f, $val) which will left-pad the number with underscores Has anyone had any luck padding with spaces?? or is there a better way