Process a list from a textarea input
Process a list from a textarea input
am 27.08.2007 04:17:37 von Larry Anderson
What would be the best method for processing a string variable
containing a list in a text area. It would be something like:
123,2234
1,3345
12,223
each value set would either be separated by commas or by tabs.
I've seen plenty examples for reading a file a line at a time but not
a string.
Re: Process a list from a textarea input
am 27.08.2007 04:43:44 von Jerry Stuckle
larry@portcommodore.com wrote:
> What would be the best method for processing a string variable
> containing a list in a text area. It would be something like:
>
> 123,2234
> 1,3345
> 12,223
>
> each value set would either be separated by commas or by tabs.
>
> I've seen plenty examples for reading a file a line at a time but not
> a string.
>
Perhaps explode() is what you're looking for?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: Process a list from a textarea input
am 27.08.2007 04:49:15 von rf
wrote in message
news:1188181057.909270.266380@e9g2000prf.googlegroups.com...
> What would be the best method for processing a string variable
> containing a list in a text area. It would be something like:
>
> 123,2234
> 1,3345
> 12,223
>
> each value set would either be separated by commas or by tabs.
>
> I've seen plenty examples for reading a file a line at a time but not
> a string.
explode?
--
Richard.
Re: Process a list from a textarea input
am 27.08.2007 05:23:13 von Larry Anderson
On Aug 26, 7:49 pm, "rf" wrote:
>
> explode?
>
> --
> Richard.
Yeah - too simple! thanks to both of you!