You are here: Re: [PHP] Testing a String for 'most' Capitalised « PHP « IT news, forums, messages
Re: [PHP] Testing a String for 'most' Capitalised

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация