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 ->

Re: [PHP] [php] - alphabetizing

2001-01-21 Thread Josh G
Just build an assosciative array like so $arr["person1"] = "string1"; $arr["person2"] = "string2"; $arr["person3"] = "string3"; $arr = asort($arr); this should do what you're looking for. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to