sprintf troubles
| From: | Chris Thomas | Date: | Fri, 26 Mar 2004 15:31:33 +0000 |
| Subject: | sprintf troubles | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181556@lists.php.net to get a copy of this message | ||
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 to do this??
Chris