Re: Testing a String for 'most' Capitalised
| From: | Greg Donald | Date: | Mon, 10 Oct 2005 13:28:17 +0000 |
| Subject: | Re: Testing a String for 'most' Capitalised | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223815@lists.php.net to get a copy of this message | ||
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/