Re: alphabetic comparison

From: Date: Thu, 30 Sep 2004 17:22:43 +0000
Subject: Re: alphabetic comparison
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198311@lists.php.net to get a copy of this message
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 <diana@hotelkey.com> 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 > "oranges" comes after or before "apples" alphabetically for instance. > > -- > Diana Castillo > Global Reservas, S.L. > C/Granvia 22 dcdo 4-dcha > 28013 Madrid-Spain > Tel : 00-34-913604039 Ext 216 > Fax : 00-34-915228673 > email: diana@hotelkey.com > Web : http://www.hotelkey.com > http://www.destinia.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- <<-------------------------------------------------------- Jasper Howard - Database Administration ApexEleven.com 530 559 0107 ------------------------------------------------------->>

« previous php.general (#198311) next »