Re: [PHP] Sorting a large text string alphabetically

2004-06-21 Thread Curt Zirzow
* Thus wrote Andre Dubuc: > I'm trying to sort alphabetically a large text string filled with first and > last names separated by ", " That would seem to be a simple task, but > sort($txt) does not seem to work even when $txt is an array. > > The code : > > > $OK= "Joe Blow, Sam Hill, Henry

Re: [PHP] Sorting a large text string alphabetically

2004-06-21 Thread Greg Donald
On Mon, 21 Jun 2004 23:19:58 -0400, Andre Dubuc <[EMAIL PROTECTED]> wrote: > > I'm trying to sort alphabetically a large text string filled with first and > last names separated by ", " That would seem to be a simple task, but > sort($txt) does not seem to work even when $txt is an array. > > T

[PHP] Sorting a large text string alphabetically

2004-06-21 Thread Andre Dubuc
I'm trying to sort alphabetically a large text string filled with first and last names separated by ", " That would seem to be a simple task, but sort($txt) does not seem to work even when $txt is an array. The code : $names){ sort($names); //line 235 reset(