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 Greg Donald on 10/10/05 16:28

On 10/10/05, zzapper <david@tvis.co.uk> wrote:
> 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


$a = array( 'fred', 'Fred', 'FRED' );
sort( $a );
echo $a[ 0 ];


--
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

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