[PHP] [php] - alphabetizing

2001-01-21 Thread Ray Iftikhar
Hello, I was just typing a msg and accidentally hit send before I could finish.. sorry.. I have a file, its contents are as follows: Name of person1, string1 Name of person2, string2 Name of person3, string3 Name of person4, string4 Name of person5, string5 I want to alphabetize the list

Re: [PHP] [php] - alphabetizing

2001-01-21 Thread Josh G
tp://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Ray Iftikhar" [EMAIL PROTECTED] To: "Php-General List" [EMAIL PROTECTED] Sent: Monday, January 22, 20

Re: [PHP] [php] - alphabetizing

2001-01-21 Thread Sean Cazzell
Ray, You could create an array where the keys are the person names and the values are the strings. For example: $people_strings = array ("joe" = "bar", "andy" = "foo"); ksort($people_strings); reset($people_strings); while (list ($key, $value) = each ($people_strings)) { print "$key -