Re: [PHP] alphabetic comparison

2004-09-30 Thread Jasper Howard
put all the values you want sorted into an array, $array = array("orange","apple"); and use sort($array);, it should list the values alphabetically. On Thu, 30 Sep 2004 17:59:39 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > Is there any way you can use the numerical comparisons < or > to see

Re: [PHP] alphabetic comparison

2004-09-30 Thread Brian
if ( "apples" < "oranges" ) {echo "apples comes before oranges";} On Thu, 30 Sep 2004 17:59:39 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > Is there any way you can use the numerical comparisons < or > to see if one > word comes first alphabetically to another ? > what can I use to see if

RE: [PHP] alphabetic comparison

2004-09-30 Thread Jesse Castro
[snip] Is there any way you can use the numerical comparisons < or > to see if one word comes first alphabetically to another ? what can I use to see if "oranges" comes after or before "apples" alphabetically for instance. [/snip] **mumble grumble** You should just try dinky questions like this o