Re: Testing a String for 'most' Capitalised

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 Oct 2005 15:27:05 +0100,  wrote:

>On 10/10/05, zzapper <david@xxxxxxxxxx> wrote:
>> Hi,
>>
>> Image that there could be a string
>>
>> fred
>> Fred
>> FRED
>>
>> First of all I need to know that these are same which I can do with strtolower, but how could I tell
>> that 'FRED' is 'most captilised?

Thanx 4 various replies. In fact speed is more important 4 me than exactitude as it's right inside a
critical loop.

I think strcmp will do the biz even though it sees fred as being greater than Fred ?!?



-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux