spewn
Programmer
- May 7, 2001
- 1,034
i have this info:
$string="123456,smith-john,11.10,april payment,USD|123499,jones-mike,40.99,april payment,USD|123994,jackson-sam,44.11,april payment,USD";
and i'd like to save into a file as:
123456 smith-john 11.10 april payment USD
123499 jones-mike 40.99 april payment USD
123994 jackson-sam 44.11 april payment USD
where the spaces are tabs.
this is for a paypal masspay file.
i know how to seperate the string and save line by line to a text file, i just can't figure out how to include the tabs in the text file, too.
any ideas?
- g
$string="123456,smith-john,11.10,april payment,USD|123499,jones-mike,40.99,april payment,USD|123994,jackson-sam,44.11,april payment,USD";
and i'd like to save into a file as:
123456 smith-john 11.10 april payment USD
123499 jones-mike 40.99 april payment USD
123994 jackson-sam 44.11 april payment USD
where the spaces are tabs.
this is for a paypal masspay file.
i know how to seperate the string and save line by line to a text file, i just can't figure out how to include the tabs in the text file, too.
any ideas?
- g