Posted by peter on 10/01/07 16:52
> Thanks for the help, will try it out
>
> Here are the string I am getting (users are submitting)
> Wanting to determine if all words in the string are uppercase
>
> "SELLING NOKIA N95 AT $270, NOKIA E90 COMMUNICATOR AT $300, 8GB APPLE
> IPHONE"
>
> "FOR SALE BRAND NEW APPLE IPHONE 8GB"
>
> etc
That being the case then the solution FD posted would be best in my
opinion:-
if ($string == strtoupper($string))
{
echo 'is upper';
}
Navigation:
[Reply to this message]
|