I need to be able to format data.
Printf() is perfect because I need a certain amount of characters (30
However I need this formatted data to be inside a file that's fwrite()
and then FTPed to a distributor who will parse it and input into their
printf("% 4d",$orderID); does not work in
In effect I need the output of printf() to be placed inside a variable
and I don't see how to do that. Str_pad(), of course, does not work.
Thx for any hints.
sprintf() is your friend!
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php