|
Posted by Janwillem Borleffs on 07/24/05 14:20
Greg wrote:
> Hi, I'm trying to pad with spaces. For example if I do this:
>
> printf ("%010s", 'php');
>
> Then it pads fine with the zeros.
>
> However if I do this:
>
> printf ("% 10s", 'php');
>
> It won't pad with spaces. What do I need to do to make it pad w/
> spaces?
printf("%' 10s", 'php');
JW
Navigation:
[Reply to this message]
|