I need a PHP script which can convert this:
(the length varies from 2 to about 10 items per line)
The script should have an input textbox and an output textbox and of course a convert button. Moreover it should be capable of handling about 30,000-50,000 lines of input.
If you have questions, please ask.