RE: sprintf query

2004-11-24 Thread Michael Kraus
G'day... > Does anyone know how to format a string so that the spaces are padded > on the right, not the left. > > Im using $dates = sprintf("%64s", $dates); > > this right justifies the data and pads the left with spaces. > I need the other way around - left justified and padded with spaces o

sprintf query

2004-11-24 Thread David Clarke
Does anyone know how to format a string so that the spaces are padded on the right, not the left. Im using $dates = sprintf("%64s", $dates); this right justifies the data and pads the left with spaces. I need the other way around - left justified and padded with spaces on the right. ***