Re: [PHP-DB] printf() in a variable, or alternative to printf()

2005-05-27 Thread Simon Rees
On Friday 27 May 2005 04:49, mayo wrote: > I need to be able to format data. > > Printf() is perfect because I need a certain amount of characters (30 > for address). > > 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 i

Re: [PHP-DB] printf() in a variable, or alternative to printf()

2005-05-27 Thread graeme
Are you looking for the sprintf() function? graeme mayo wrote: I need to be able to format data. Printf() is perfect because I need a certain amount of characters (30 for address). However I need this formatted data to be inside a file that's fwrite() and then FTPed to a distributor who w

Re: [PHP-DB] printf() in a variable, or alternative to printf()

2005-05-27 Thread Philip Hallstrom
I need to be able to format data. Printf() is perfect because I need a certain amount of characters (30 for address). 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 database. printf("% 4d",$orderID[0

RE: [PHP-DB] printf() in a variable, or alternative to

2005-05-27 Thread N . A . Morgan
Try sprintf(). -Original Message- From: mayo [mailto:[EMAIL PROTECTED] Sent: 27 May 2005 14:02 To: php-db@lists.php.net Subject: [PHP-DB] printf() in a variable, or alternative to I need to be able to format data. Printf() is perfect because I need a certain amount of characters

[PHP-DB] printf() in a variable, or alternative to

2005-05-27 Thread mayo
I need to be able to format data. Printf() is perfect because I need a certain amount of characters (30 for address). 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 database. printf("% 4d",$ord

[PHP-DB] printf() in a variable, or alternative to printf()

2005-05-26 Thread mayo
I need to be able to format data. Printf() is perfect because I need a certain amount of characters (30 for address). 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 database. printf("% 4d",$ord