Posted by Jochem Maas on 10/10/05 17:57
Greg Donald wrote:
> On 10/10/05, Jochem Maas <jochem@iamjochem.com> wrote:
>
>>cute - but it doesn't always work e.g.:
>>
>>$a = array( "FrEDDie", "fREDdIE", "FReddie" );
>>sort( $a );
>>echo $a[ 0 ]; // we want the 2nd item from the unsort array
>
>
> Works for the sample data you first posted. *shrug*
I AM NOT THE OP THANKS, I'm quite capable of solving
such a problem without the help of people who don't bother
to think beyond 'sample data' ... It's bloody obvious that
the data in question (sample or not) will not be in an order
that means the string with the most capital letters will be
'top of the list' after a sort().
*shrug* is rather blasee btw.
>
>
> --
> Greg Donald
> Zend Certified Engineer
> MySQL Core Certification
> http://destiney.com/
[Back to original message]
|